Merging collapsible if statements increases the code's readability.
Issue-ID: OPTFRA-634
Change-Id: Ib1a5e730820b832f5e1d42aefd75f925a2ad26cc
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