mirror of
https://github.com/tnodir/fort
synced 2024-11-15 06:46:41 +00:00
UI: TaskUpdateChecker: Simplify parseBuffer()
This commit is contained in:
parent
b7e5b6ab89
commit
02e705ee9b
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user