Skip to content

Commit

Permalink
fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
thoomasbro committed Feb 3, 2023
1 parent 3fc3f6c commit ebbc472
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ class MissionsController(
@RequestBody
updateMissionDataInput: CreateOrUpdateMissionDataInput
): MissionDataOutput {
if (updateMissionDataInput.id !== null && missionId !== updateMissionDataInput.id) {
if ((updateMissionDataInput.id != null) && (missionId != updateMissionDataInput.id)) {
throw java.lang.IllegalArgumentException("missionId doesn't match with request param")
}
return updateMission.execute(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class ApiMissionsController(
@RequestBody
updateMissionDataInput: CreateOrUpdateMissionDataInput
): MissionDataOutput {
if (updateMissionDataInput.id === null || missionId !== updateMissionDataInput.id) {
if ((updateMissionDataInput.id == null) || (missionId != updateMissionDataInput.id)) {
throw java.lang.IllegalArgumentException("missionId doesn't match with request param")
}
return updateMission.execute(
Expand Down

0 comments on commit ebbc472

Please sign in to comment.