Skip to content

Commit

Permalink
Update src/main/java/dev/openfeature/sdk/EventEmitter.java
Browse files Browse the repository at this point in the history
Co-authored-by: Kavindu Dodanduwa <Kavindu-Dodan@users.noreply.github.com>
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
  • Loading branch information
toddbaert and Kavindu-Dodan authored Jun 15, 2023
1 parent c5832e7 commit 84c8fcb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/main/java/dev/openfeature/sdk/EventEmitter.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,7 @@ public void emit(ProviderEvent event, ProviderEventDetails details) {
eventDetails.setClientName(((EventDetails) details).getClientName());
}

this.handlerMap.get(event).stream().forEach(handler -> {
runHander(handler, eventDetails);
});
this.handlerMap.get(event).forEach(handler -> runHander(handler, eventDetails));
}
}

Expand Down

0 comments on commit 84c8fcb

Please sign in to comment.