Skip to content

Commit

Permalink
Fix indentation in NoCloudUpdaterCheckStep.js
Browse files Browse the repository at this point in the history
Signed-off-by: D. G. Alexandru <[email protected]>
  • Loading branch information
DGAlexandru authored Nov 18, 2024
1 parent 2db8787 commit 7794cad
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions backend/lib/updater/lib/steps/NoCloudUpdaterCheckStep.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,12 @@ class NoCloudUpdaterCheckStep extends NoCloudUpdaterStep {
].join()
);
}
}
else if (!(statusAttribute && statusAttribute.value === stateAttrs.StatusStateAttribute.VALUE.IDLE)) {
} else if (!(statusAttribute && statusAttribute.value === stateAttrs.StatusStateAttribute.VALUE.IDLE)) {
throw new NoCloudUpdaterError(
NoCloudUpdaterError.ERROR_TYPE.NOT_IDLE,
[
`Updating NoCloud is only allowed if the Robot is Idle or Docked!`,
`Current status: ${statusAttribute.value}`
`Current status: ${statusAttribute.value}`,
"Updating NoCloud is only allowed if the Robot is Idle or Docked!"
].join()
);
}
Expand Down

0 comments on commit 7794cad

Please sign in to comment.