Skip to content

Commit

Permalink
fixed warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
wolpi committed Mar 17, 2024
1 parent fb054b8 commit b900ddc
Showing 1 changed file with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,9 @@ public void onClick() {
// Check whether the device is locked or not.
if(isLocked()){
unlockAndRun(
new Runnable(){
@Override
public void run() {
toggle();
updateTile();
}
() -> {
toggle();
updateTile();
}
);
}
Expand Down Expand Up @@ -124,6 +121,6 @@ public void onEvent(ServerStateChangedEvent event) {
private boolean isActive() {
ServersRunningBean serversRunningBean = ServicesStartStopUtil.checkServicesRunning(this);

return serversRunningBean != null && serversRunningBean.atLeastOneRunning();
return serversRunningBean.atLeastOneRunning();
}
}

0 comments on commit b900ddc

Please sign in to comment.