diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-11-20 15:30:59 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-11-20 15:30:59 +0900 |
commit | 92a504cd7255fd23c2ce4b8ffb4880e80dc1d839 (patch) | |
tree | 15f498d27da1f637edd80eb7ca61fc925d9f36f5 /lib/jobs/syncjob.cpp | |
parent | 8e9e89846f75cae907bb9c2c6868dcb0f37896ae (diff) | |
download | libquotient-92a504cd7255fd23c2ce4b8ffb4880e80dc1d839.tar.gz libquotient-92a504cd7255fd23c2ce4b8ffb4880e80dc1d839.zip |
SyncJob::parseJson: fix a validation mistake
Diffstat (limited to 'lib/jobs/syncjob.cpp')
-rw-r--r-- | lib/jobs/syncjob.cpp | 11 |
1 files 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; } |