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())) {
|
if (!url.isEmpty() && BuildConfig.MODRINTH_MRPACK_HOSTS.contains(url.host())) {
|
||||||
qDebug() << "Resolving" << relative << "from index";
|
qDebug() << "Resolving" << relative << "from index";
|
||||||
|
|
||||||
// we've already read it
|
|
||||||
// let's go back!
|
|
||||||
openFile.seek(openFile.size());
|
|
||||||
|
|
||||||
QCryptographicHash hash2(QCryptographicHash::Algorithm::Sha1);
|
QCryptographicHash hash2(QCryptographicHash::Algorithm::Sha1);
|
||||||
hash2.addData(data);
|
hash2.addData(data);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user