From 02e705ee9b606dadc091ac98ad1de4819b2da89e Mon Sep 17 00:00:00 2001 From: Nodir Temirkhodjaev Date: Fri, 26 Apr 2024 14:21:16 +0300 Subject: [PATCH] UI: TaskUpdateChecker: Simplify parseBuffer() --- src/ui/task/taskupdatechecker.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/ui/task/taskupdatechecker.cpp b/src/ui/task/taskupdatechecker.cpp index 25011ff7..ade2ed31 100644 --- a/src/ui/task/taskupdatechecker.cpp +++ b/src/ui/task/taskupdatechecker.cpp @@ -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();