Skip to content

Commit e161690

Browse files
sanityiduartgomez
authored andcommitted
style(update): use direct equality in allow-self check
1 parent 4a69387 commit e161690

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/core/src/operations/update.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -703,7 +703,7 @@ impl OpManager {
703703
// Allow the sender (or ourselves) to stay in the broadcast list when we're
704704
// originating the UPDATE so local auto-subscribes still receive events.
705705
let is_sender = &pk.peer == sender;
706-
let is_self = self_peer.as_ref().map_or(false, |me| &pk.peer == me);
706+
let is_self = self_peer.as_ref() == Some(&pk.peer);
707707
if is_sender || is_self {
708708
allow_self
709709
} else {

0 commit comments

Comments
 (0)