Skip to content

Commit

Permalink
Very minor checkstyle (openhab#13973)
Browse files Browse the repository at this point in the history
Signed-off-by: Leo Siepel <leosiepel@gmail.com>
  • Loading branch information
lsiepel authored Dec 19, 2022
1 parent 127f998 commit 40b8b77
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 40b8b77

Please sign in to comment.