From 10bc443864dfda50e6277ab65d92e2dffbce8f8c Mon Sep 17 00:00:00 2001 From: Carl Harris Date: Thu, 17 Aug 2017 05:24:10 -0400 Subject: [PATCH] GUACAMOLE-364: eliminate unnecessary local variable --- .../org/apache/guacamole/rest/auth/AuthenticationService.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/guacamole/src/main/java/org/apache/guacamole/rest/auth/AuthenticationService.java b/guacamole/src/main/java/org/apache/guacamole/rest/auth/AuthenticationService.java index 4fed42aeb..8760b7363 100644 --- a/guacamole/src/main/java/org/apache/guacamole/rest/auth/AuthenticationService.java +++ b/guacamole/src/main/java/org/apache/guacamole/rest/auth/AuthenticationService.java @@ -243,8 +243,7 @@ public class AuthenticationService { AuthenticationSuccessEvent event = new AuthenticationSuccessEvent( userContext, authenticatedUser.getCredentials()); - boolean ok = listenerService.authenticationSucceeded(event); - if (!ok) { + if (!listenerService.authenticationSucceeded(event)) { throw new GuacamoleAuthenticationRejectedException(); } }