Remove unneeded parentheses 28/102828/2
authorRobert Varga <robert.varga@pantheon.tech>
Fri, 21 Oct 2022 12:36:10 +0000 (14:36 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Fri, 21 Oct 2022 12:44:51 +0000 (14:44 +0200)
This is a simple comparison, no parentheses are needed.

Change-Id: Ib0857e0a9c35f743260d5250f4bcf0cd6fd35230
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
bundles-test-lib/src/main/java/org/opendaylight/odlparent/bundlestest/lib/BundleDiagInfosImpl.java

index 4a47dfb8b635202c5af8850942ac0f74233679f4..48f5c2ea1675254f5428e750f909bd728b9bf17c 100644 (file)
@@ -107,7 +107,7 @@ final class BundleDiagInfosImpl implements BundleDiagInfos {
             // but we intentionally, got a little further than Karaf's "diag" command,
             // and instead of only checking some states, we check what's really Active,
             // but accept that some remain just Resolved:
-            if (karafBundleState != Active && !(karafBundleState == BundleState.Resolved)) {
+            if (karafBundleState != Active && karafBundleState != BundleState.Resolved) {
                 String msg = "NOK " + bundleSymbolicNameWithVersion + ": " + bundleStateDiagText;
                 nokBundleStateInfoTexts.add(msg);
             } else {