Skip to content

Commit

Permalink
FIX indent
Browse files Browse the repository at this point in the history
  • Loading branch information
fgalan committed Jan 8, 2024
1 parent 82ed507 commit 96035b8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/lib/mongoBackend/mongoUpdateContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ HttpStatusCode mongoUpdateContext
// Other cases follow the usual response processing flow (whatever it is :)
if (updateCoverage == UC_PARTIAL)
{
responseP->oe.code = SccInvalidModification;
responseP->oe.code = SccInvalidModification;
responseP->oe.error = ERROR_PARTIAL_UPDATE;
}

Expand Down
16 changes: 8 additions & 8 deletions src/lib/rest/OrionError.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@
*/
OrionError::OrionError()
{
code = SccNone;
error = "";
description = "";
filled = false;
code = SccNone;
error = "";
description = "";
filled = false;
}


Expand Down Expand Up @@ -194,13 +194,13 @@ std::string OrionError::toJsonV1(void)
//
// OrionError is NEVER part of any other payload, so the JSON start/end braces must be added here
//
out += startTag("orionError", false);
out += valueTag("code", code, true);
out += valueTag("reasonPhrase", error, !description.empty());
out += startTag("orionError", false);
out += valueTag("code", code, true);
out += valueTag("reasonPhrase", error, !description.empty());

if (!description.empty())
{
out += valueTag("details", description);
out += valueTag("details", description);
}

out += endTag();
Expand Down

0 comments on commit 96035b8

Please sign in to comment.