GUACAMOLE-364: eliminate unnecessary local variable
This commit is contained in:
1 parent
059cb75f0f
commit
10bc443864
1 file changed
+1
-2
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user