Merging collapsible if statements increases the code's readability.
Issue-ID: OPTFRA-634
Change-Id: Ic1c24c2671f62282477e32c432216ac560745c03
Signed-off-by: anushadasari <danush10@in.ibm.com>
sessionId = webAuthDetails.getRemoteAddress() + ":" + webAuthDetails.getSessionId();\r
}\r
}\r
- if (env.getProperty(AafProperties.aafEnabled.toString(), Boolean.class, true)) {\r
- if (clientCache.authenticate(name, password, sessionId) != AuthorizationResult.Authenticated) {\r
+ if (env.getProperty(AafProperties.aafEnabled.toString(), Boolean.class, true) && clientCache.authenticate(name, password, sessionId) != AuthorizationResult.Authenticated ) {\r
return null;\r
}\r
- }\r
return new UsernamePasswordAuthenticationToken(name, password, new ArrayList<>());\r
\r
}\r