diff options
author | Kode <TheKodeToad@proton.me> | 2023-04-09 21:28:40 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-09 21:28:40 +0100 |
commit | 3a7961834abbd28014de89799514510e74f365ab (patch) | |
tree | 04b3671df9951827ff1be9a8747c29c4f570bdb3 | |
parent | 813ccc1381f8cb128d0bdcaac1e62d76e8b74289 (diff) | |
download | PrismLauncher-3a7961834abbd28014de89799514510e74f365ab.tar.gz PrismLauncher-3a7961834abbd28014de89799514510e74f365ab.tar.bz2 PrismLauncher-3a7961834abbd28014de89799514510e74f365ab.zip |
Remove `seek`
Don't need it if the data is already in a byte array.
Signed-off-by: Kode <TheKodeToad@proton.me>
-rw-r--r-- | launcher/modplatform/modrinth/ModrinthPackExportTask.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/launcher/modplatform/modrinth/ModrinthPackExportTask.cpp b/launcher/modplatform/modrinth/ModrinthPackExportTask.cpp index fc16f912..ed50fd20 100644 --- a/launcher/modplatform/modrinth/ModrinthPackExportTask.cpp +++ b/launcher/modplatform/modrinth/ModrinthPackExportTask.cpp @@ -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); -}
\ No newline at end of file +} |