From 92a504cd7255fd23c2ce4b8ffb4880e80dc1d839 Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Tue, 20 Nov 2018 15:30:59 +0900 Subject: SyncJob::parseJson: fix a validation mistake --- lib/jobs/syncjob.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/lib/jobs/syncjob.cpp b/lib/jobs/syncjob.cpp index ef9b45dd..ac0f6685 100644 --- a/lib/jobs/syncjob.cpp +++ b/lib/jobs/syncjob.cpp @@ -46,11 +46,10 @@ BaseJob::Status SyncJob::parseJson(const QJsonDocument& data) { d.parseJson(data.object()); if (d.unresolvedRooms().isEmpty()) - { - qCCritical(MAIN) << "Incomplete sync response, missing rooms:" - << d.unresolvedRooms().join(','); - return BaseJob::IncorrectResponseError; - } - return BaseJob::Success; + return BaseJob::Success; + + qCCritical(MAIN).noquote() << "Incomplete sync response, missing rooms:" + << d.unresolvedRooms().join(','); + return BaseJob::IncorrectResponseError; } -- cgit v1.2.3