GUACAMOLE-364: eliminate unnecessary local variable

Project: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/commit/10bc4438
Tree: 
http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/tree/10bc4438
Diff: 
http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/diff/10bc4438

Branch: refs/heads/master
Commit: 10bc443864dfda50e6277ab65d92e2dffbce8f8c
Parents: 059cb75
Author: Carl Harris <[email protected]>
Authored: Thu Aug 17 05:24:10 2017 -0400
Committer: Carl Harris <[email protected]>
Committed: Thu Aug 17 05:24:10 2017 -0400

----------------------------------------------------------------------
 .../org/apache/guacamole/rest/auth/AuthenticationService.java     | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/blob/10bc4438/guacamole/src/main/java/org/apache/guacamole/rest/auth/AuthenticationService.java
----------------------------------------------------------------------
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 4fed42a..8760b73 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();
         }
     }

Reply via email to