Skip to content

Commit c5832e7

Browse files
Update src/main/java/dev/openfeature/sdk/EventEmitter.java
Co-authored-by: Kavindu Dodanduwa <[email protected]> Signed-off-by: Todd Baert <[email protected]>
1 parent a382492 commit c5832e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/dev/openfeature/sdk/EventEmitter.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public void emit(ProviderEvent event, ProviderEventDetails details) {
5151
.build();
5252

5353
// we may be forwarding this event, preserve the name if so.
54-
if (EventDetails.class.isInstance(details)) {
54+
if (details instanceof EventDetails) {
5555
eventDetails.setClientName(((EventDetails) details).getClientName());
5656
}
5757

0 commit comments

Comments
 (0)