GUACAMOLE-195: Fix style issues with if statements.
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/4faa806a Tree: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/tree/4faa806a Diff: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/diff/4faa806a Branch: refs/heads/master Commit: 4faa806ae9634f94dcfec3b7de26ca72bdf3a3c8 Parents: 8eb33b5 Author: Nick Couchman <[email protected]> Authored: Fri Feb 3 15:05:00 2017 -0500 Committer: Nick Couchman <[email protected]> Committed: Fri Feb 3 15:05:00 2017 -0500 ---------------------------------------------------------------------- .../guacamole/auth/header/AuthenticationProviderService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/blob/4faa806a/extensions/guacamole-auth-header/src/main/java/org/apache/guacamole/auth/header/AuthenticationProviderService.java ---------------------------------------------------------------------- diff --git a/extensions/guacamole-auth-header/src/main/java/org/apache/guacamole/auth/header/AuthenticationProviderService.java b/extensions/guacamole-auth-header/src/main/java/org/apache/guacamole/auth/header/AuthenticationProviderService.java index a4acc9b..7adb100 100644 --- a/extensions/guacamole-auth-header/src/main/java/org/apache/guacamole/auth/header/AuthenticationProviderService.java +++ b/extensions/guacamole-auth-header/src/main/java/org/apache/guacamole/auth/header/AuthenticationProviderService.java @@ -69,11 +69,11 @@ public class AuthenticationProviderService { // Pull HTTP header from request if present HttpServletRequest request = credentials.getRequest(); - if(request != null) { + if (request != null) { // Get the username from the header configured in guacamole.properties String username = request.getHeader(confService.getHttpAuthHeader()); - if(username != null) { + if (username != null) { AuthenticatedUser authenticatedUser = authenticatedUserProvider.get(); authenticatedUser.init(username, credentials); return authenticatedUser;
