UI: TaskUpdateChecker: Simplify parseBuffer()

This commit is contained in:
Nodir Temirkhodjaev 2024-04-26 14:21:16 +03:00
parent b7e5b6ab89
commit 02e705ee9b

View File

@ -79,9 +79,7 @@ bool TaskUpdateChecker::parseBuffer(const QByteArray &buffer)
if (m_version.isEmpty())
return false;
// Check draft/prerelease
if (map["draft"].toBool() || map["prerelease"].toBool())
return false;
// `releases/latest/` cannot contain draft/prerelease
// Check Assets
const QVariantList assets = map["assets"].toList();