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:
parent
813ccc1381
commit
3a7961834a
@ -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);
|
||||
|
||||
@ -307,4 +303,4 @@ QByteArray ModrinthPackExportTask::generateIndex()
|
||||
obj["files"] = files;
|
||||
|
||||
return QJsonDocument(obj).toJson(QJsonDocument::Compact);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user