GUACAMOLE-364: eliminate unnecessary local variable

This commit is contained in:
Carl Harris
2017-08-17 05:24:10 -04:00
parent 059cb75f0f
commit 10bc443864

View File

@@ -243,8 +243,7 @@ public class AuthenticationService {
AuthenticationSuccessEvent event = new AuthenticationSuccessEvent( AuthenticationSuccessEvent event = new AuthenticationSuccessEvent(
userContext, authenticatedUser.getCredentials()); userContext, authenticatedUser.getCredentials());
boolean ok = listenerService.authenticationSucceeded(event); if (!listenerService.authenticationSucceeded(event)) {
if (!ok) {
throw new GuacamoleAuthenticationRejectedException(); throw new GuacamoleAuthenticationRejectedException();
} }
} }