[Minor] Code cleanup

This commit is contained in:
Robert von Burg 2020-05-19 11:17:30 +02:00
parent a0b24f74a5
commit 006508ff2e
1 changed files with 2 additions and 6 deletions

View File

@ -199,12 +199,8 @@ public class EventBasedExecutionHandler extends ExecutionHandler {
synchronized (this.controllers) {
Map<Locator, Controller> controllers = this.controllers.getMap(realm);
if (controllers != null) {
for (Controller controller : controllers.values()) {
// execute async
toExecution(controller);
}
}
if (controllers != null)
controllers.values().forEach(this::toExecution);
}
}