Merge "sonar fix - remove literal boolean true value"
authorJonathan Gathman <jonathan.gathman@att.com>
Tue, 6 Aug 2019 23:45:28 +0000 (23:45 +0000)
committerGerrit Code Review <gerrit@onap.org>
Tue, 6 Aug 2019 23:45:28 +0000 (23:45 +0000)
1  2 
auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/AAFcli.java

@@@ -341,7 -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();
                  
                                      String line;
                                      while ((line = reader.readLine()) != null) {
 -                                        showDetails = (line.contains("-d"))?true:false;
 +                                        showDetails = (line.contains("-d"));
                  
                                          if (line.equalsIgnoreCase("quit") || line.equalsIgnoreCase("q") || line.equalsIgnoreCase("exit")) {
                                              break;