diff options
author | anushadasari <danush10@in.ibm.com> | 2019-11-12 12:42:29 +0530 |
---|---|---|
committer | anushadasari <danush10@in.ibm.com> | 2019-11-12 12:42:36 +0530 |
commit | 5128622fb4958005eb8eaae80990edfd4191a496 (patch) | |
tree | 77ba2e7dbbe5f55e15d17457de64b8ae7c9b1afd | |
parent | 2f37b614d541fa4a3c4bfa36836fd9919a469250 (diff) |
Merge this if statement with the enclosing one
Merging collapsible if statements increases the code's readability.
Issue-ID: OPTFRA-634
Change-Id: If8f306257cb92de244cdc929e09ba89bbda62e86
Signed-off-by: anushadasari <danush10@in.ibm.com>
-rwxr-xr-x | cmso-optimizer/src/main/java/org/onap/optf/cmso/optimizer/aaf/AafClientCache.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/cmso-optimizer/src/main/java/org/onap/optf/cmso/optimizer/aaf/AafClientCache.java b/cmso-optimizer/src/main/java/org/onap/optf/cmso/optimizer/aaf/AafClientCache.java index 0dc18db..1ce581a 100755 --- a/cmso-optimizer/src/main/java/org/onap/optf/cmso/optimizer/aaf/AafClientCache.java +++ b/cmso-optimizer/src/main/java/org/onap/optf/cmso/optimizer/aaf/AafClientCache.java @@ -138,14 +138,12 @@ public class AafClientCache { cacheAge = now;
}
permissions = cache.get(getCacheKey(auth));
- if (permissions == null) {
- if (!auth.get("password").equals("")) {
+ if ((permissions == null) && (!auth.get("password").equals(""))) {
permissions = getPermissionsFromAaf(auth);
if (permissions != null) {
cache.put(getCacheKey(auth), permissions);
}
}
- }
}
return permissions;
}
|