Skip to content

Commit

Permalink
KOGITO-7453: Apply QE review changes
Browse files Browse the repository at this point in the history
  • Loading branch information
martinweiler committed Jul 25, 2022
1 parent 35afd5f commit 2ef7a3f
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 @@ -47,7 +47,7 @@ public Response publishEvenNumber(@PathParam("type") String type, @PathParam("nu
logger.info("Publish type " + type + " number " + number);
// check if the input number is even
if (!"even".equals(type)) {
return Response.status(Status.BAD_REQUEST).entity(objectMapper.createObjectNode().put("error", "No perfect square for odd numbers")).build();
return Response.status(Status.BAD_REQUEST).entity(objectMapper.createObjectNode().put("error", "Perfect square assessment not supported for odd numbers by this service")).build();
}
return Response.ok().entity(objectMapper.createObjectNode().put("perfect", isPerfectSquare(number))).build();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
"arguments": {
"type": "$.numberType",
"number": "$.number"
}
}
}
}
],
Expand Down

0 comments on commit 2ef7a3f

Please sign in to comment.