mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-10-27 15:13:07 +00:00
GUACAMOLE-364: eliminate unnecessary local variable
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user