Skip to content

Commit

Permalink
ref: Simplify (avoid unnecessary cast). (#2037)
Browse files Browse the repository at this point in the history
  • Loading branch information
bgrozev authored Aug 3, 2023
1 parent 5fd429e commit 2edebdd
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions jvb/src/main/java/org/jitsi/videobridge/Conference.java
Original file line number Diff line number Diff line change
Expand Up @@ -1036,9 +1036,7 @@ public void addEndpoints(Set<AbstractEndpoint> endpoints)

updateEndpointsCache();

boolean hasNonVisitor = endpoints.stream().anyMatch( endpoint ->
!(endpoint instanceof Endpoint) || !((Endpoint)endpoint).getVisitor()
);
boolean hasNonVisitor = endpoints.stream().anyMatch(endpoint -> !endpoint.getVisitor());

endpointsChanged(hasNonVisitor);
}
Expand Down

0 comments on commit 2edebdd

Please sign in to comment.