Skip to content

Commit

Permalink
Fix empty JSON object on empty lookup results
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxime Dor committed Sep 24, 2017
1 parent e0022e5 commit f1e78af
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class MappingController {
Optional<SingleLookupReply> lookupOpt = strategy.find(lookupRequest)
if (!lookupOpt.isPresent()) {
log.info("No mapping was found, return empty JSON object")
return JsonOutput.toJson([])
return "{}"
}

SingleLookupReply lookup = lookupOpt.get()
Expand Down

0 comments on commit f1e78af

Please sign in to comment.