Merging collapsible if statements increases the code's readability.
Issue-ID: OPTFRA-634
Change-Id: If8f306257cb92de244cdc929e09ba89bbda62e86
Signed-off-by: anushadasari <danush10@in.ibm.com>
cacheAge = now;\r
}\r
permissions = cache.get(getCacheKey(auth));\r
- if (permissions == null) {\r
- if (!auth.get("password").equals("")) {\r
+ if ((permissions == null) && (!auth.get("password").equals(""))) {\r
permissions = getPermissionsFromAaf(auth);\r
if (permissions != null) {\r
cache.put(getCacheKey(auth), permissions);\r
}\r
}\r
- }\r
}\r
return permissions;\r
}\r