From 40b8b77840b3103f39800bb732f1b94d84f63a90 Mon Sep 17 00:00:00 2001 From: lsiepel Date: Tue, 20 Dec 2022 00:01:50 +0100 Subject: [PATCH] Very minor checkstyle (#13973) Signed-off-by: Leo Siepel --- .../bluetooth/roaming/internal/RoamingBridgeHandler.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/bundles/org.openhab.binding.bluetooth.roaming/src/main/java/org/openhab/binding/bluetooth/roaming/internal/RoamingBridgeHandler.java b/bundles/org.openhab.binding.bluetooth.roaming/src/main/java/org/openhab/binding/bluetooth/roaming/internal/RoamingBridgeHandler.java index b463886b3120f..3023af4c3aa03 100644 --- a/bundles/org.openhab.binding.bluetooth.roaming/src/main/java/org/openhab/binding/bluetooth/roaming/internal/RoamingBridgeHandler.java +++ b/bundles/org.openhab.binding.bluetooth.roaming/src/main/java/org/openhab/binding/bluetooth/roaming/internal/RoamingBridgeHandler.java @@ -136,10 +136,7 @@ public boolean isDiscoveryEnabled() { 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