aboutsummaryrefslogtreecommitdiff
path: root/lib/jobs/syncjob.cpp
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-11-20 15:30:59 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-11-20 15:30:59 +0900
commit92a504cd7255fd23c2ce4b8ffb4880e80dc1d839 (patch)
tree15f498d27da1f637edd80eb7ca61fc925d9f36f5 /lib/jobs/syncjob.cpp
parent8e9e89846f75cae907bb9c2c6868dcb0f37896ae (diff)
downloadlibquotient-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.cpp11
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;
}