Remove seek

Don't need it if the data is already in a byte array.

Signed-off-by: Kode <TheKodeToad@proton.me>
This commit is contained in:
Kode 2023-04-09 21:28:40 +01:00 committed by GitHub
parent 813ccc1381
commit 3a7961834a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -122,10 +122,6 @@ void ModrinthPackExportTask::collectHashes()
if (!url.isEmpty() && BuildConfig.MODRINTH_MRPACK_HOSTS.contains(url.host())) {
qDebug() << "Resolving" << relative << "from index";
// we've already read it
// let's go back!
openFile.seek(openFile.size());
QCryptographicHash hash2(QCryptographicHash::Algorithm::Sha1);
hash2.addData(data);