]> git.basschouten.com Git - openhab-addons.git/commitdiff
Very minor checkstyle (#13973)
authorlsiepel <leosiepel@gmail.com>
Mon, 19 Dec 2022 23:01:50 +0000 (00:01 +0100)
committerGitHub <noreply@github.com>
Mon, 19 Dec 2022 23:01:50 +0000 (00:01 +0100)
Signed-off-by: Leo Siepel <leosiepel@gmail.com>
bundles/org.openhab.binding.bluetooth.roaming/src/main/java/org/openhab/binding/bluetooth/roaming/internal/RoamingBridgeHandler.java

index b463886b3120ff0e84cec6cbad60a102b8b1f089..3023af4c3aa03f8bfd557551fdc63b9cc8d01f08 100644 (file)
@@ -136,10 +136,7 @@ public class RoamingBridgeHandler extends BaseBridgeHandler implements RoamingBl
             return false;
         }
         Object discovery = getConfig().get(BluetoothBindingConstants.CONFIGURATION_DISCOVERY);
-        if (discovery != null && discovery.toString().equalsIgnoreCase("false")) {
-            return false;
-        }
-        return true;
+        return !(discovery != null && discovery.toString().equalsIgnoreCase("false"));
     }
 
     @Override