summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDasari Anusha <danush10@in.ibm.com>2019-07-18 23:38:42 +0530
committeranusha dasari <danush10@in.ibm.com>2019-07-25 07:03:33 +0000
commitf380e9e596516b932cb04311c3393cd782337d68 (patch)
tree9dada47a53c2a02fce267319cbcaa808d706bf1c
parent5b77b6489dfb644a901e2640615a32d78f533351 (diff)
sonar fix - remove literal boolean true value
Issue-ID: AAF-877 Change-Id: I64e50083b9b0fe40fa0ba32723e30adb0dbce08e Signed-off-by: Dasari Anusha <danush10@in.ibm.com>
-rw-r--r--auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/AAFcli.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/AAFcli.java b/auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/AAFcli.java
index 01d001fd..c940c401 100644
--- a/auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/AAFcli.java
+++ b/auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/AAFcli.java
@@ -341,7 +341,7 @@ public class AAFcli {
} finally {
clearSingleLineProperties();
}
- rv = expect.isEmpty() ? true : expect.contains(ret);
+ rv = expect.isEmpty() || expect.contains(ret);
if (verbose) {
if (rv) {
pw.println();