diff --git a/data-service/src/main/java/uk/gov/laa/ccms/data/controller/UserController.java b/data-service/src/main/java/uk/gov/laa/ccms/data/controller/UserController.java index 4775995..42a97e5 100644 --- a/data-service/src/main/java/uk/gov/laa/ccms/data/controller/UserController.java +++ b/data-service/src/main/java/uk/gov/laa/ccms/data/controller/UserController.java @@ -34,7 +34,8 @@ public class UserController implements UsersApi { */ @Override public ResponseEntity getUser(String loginId) { - return userService.getUser(loginId).map(ResponseEntity::ok) + return userService.getUser(loginId) + .map(ResponseEntity::ok) .orElse(ResponseEntity.notFound().build()); } @@ -48,5 +49,4 @@ public ResponseEntity getUser(String loginId) { public ResponseEntity getUsers(Integer providerId, Pageable pageable) { return ResponseEntity.ok(userService.getUsers(providerId, pageable)); } - }