Skip to content

Commit

Permalink
Small improvement.
Browse files Browse the repository at this point in the history
Signed-off-by: alex-z <[email protected]>
  • Loading branch information
allexzander committed Dec 7, 2023
1 parent 42161e4 commit 2091121
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/libsync/clientstatusreportingnetwork.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ void ClientStatusReportingNetwork::sendReportToServer()
if (isSuccess) {
const auto metaFromJson = json.object().value(QStringLiteral("ocs")).toObject().value(QStringLiteral("meta")).toObject();
const auto codeFromJson = metaFromJson.value(QStringLiteral("statuscode")).toInt();
if (codeFromJson == 0 || codeFromJson == 200 || codeFromJson == 201 || codeFromJson == 204) {
if (codeFromJson == HttpErrorCodeNone || codeFromJson == HttpErrorCodeSuccess || codeFromJson == HttpErrorCodeSuccessCreated
|| codeFromJson == HttpErrorCodeSuccessNoContent) {
reportToServerSentSuccessfully();
return;
}
Expand Down

0 comments on commit 2091121

Please sign in to comment.