From 8ed00c6ee586795b08d200a87b53c1755d6aa534 Mon Sep 17 00:00:00 2001 From: Tobias Eidelpes Date: Thu, 20 May 2021 10:40:02 +0200 Subject: [PATCH] Reformat file --- .../service/auth/client/impl/GrpcAuthenticationClient.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ass2-service/auth-client/src/main/java/dst/ass2/service/auth/client/impl/GrpcAuthenticationClient.java b/ass2-service/auth-client/src/main/java/dst/ass2/service/auth/client/impl/GrpcAuthenticationClient.java index 2a29bde..5df30b9 100644 --- a/ass2-service/auth-client/src/main/java/dst/ass2/service/auth/client/impl/GrpcAuthenticationClient.java +++ b/ass2-service/auth-client/src/main/java/dst/ass2/service/auth/client/impl/GrpcAuthenticationClient.java @@ -22,10 +22,10 @@ public class GrpcAuthenticationClient implements IAuthenticationClient { AuthenticationRequest request = AuthenticationRequest.newBuilder().setEmail(email).setPassword(password).build(); AuthenticationResponse response = blockingStub.authenticate(request); - if(response.getStatus().contains("NoSuchUserException")) + if (response.getStatus().contains("NoSuchUserException")) throw new NoSuchUserException("User with email " + email + " could not be found"); - if(response.getStatus().contains("AuthenticationException")) + if (response.getStatus().contains("AuthenticationException")) throw new AuthenticationException("Password for user with email " + email + " was incorrect"); return response.getToken();