GUACAMOLE-195: Fix style issues with if statements.

This commit is contained in:
Nick Couchman
2017-02-03 15:05:00 -05:00
parent 8eb33b5ca6
commit 4faa806ae9

View File

@@ -69,11 +69,11 @@ public class AuthenticationProviderService {
// Pull HTTP header from request if present // Pull HTTP header from request if present
HttpServletRequest request = credentials.getRequest(); HttpServletRequest request = credentials.getRequest();
if(request != null) { if (request != null) {
// Get the username from the header configured in guacamole.properties // Get the username from the header configured in guacamole.properties
String username = request.getHeader(confService.getHttpAuthHeader()); String username = request.getHeader(confService.getHttpAuthHeader());
if(username != null) { if (username != null) {
AuthenticatedUser authenticatedUser = authenticatedUserProvider.get(); AuthenticatedUser authenticatedUser = authenticatedUserProvider.get();
authenticatedUser.init(username, credentials); authenticatedUser.init(username, credentials);
return authenticatedUser; return authenticatedUser;