Skip to content

Commit

Permalink
Minor change in logic
Browse files Browse the repository at this point in the history
  • Loading branch information
imsuneth committed Jul 14, 2023
1 parent c8b6a14 commit 83be4b6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public API generateSynapseAPI() throws APIGenException {
// url can be relative the place where the swagger is hosted.
apiContext = serversString;
}
if (apiContext.isEmpty() || apiContext.equals("/")) {
if (apiContext.isEmpty() || "/".equals(apiContext)) {
apiContext = SwaggerConstants.DEFAULT_CONTEXT;
}
//cleanup context : remove ending '/'
Expand Down

0 comments on commit 83be4b6

Please sign in to comment.