Skip to content

Commit

Permalink
Revert "chore: Fix a nightly clippy::unnecessary_map_or lint"
Browse files Browse the repository at this point in the history
This reverts commit c9a37b2.
  • Loading branch information
danielhjacobs authored and torokati44 committed Dec 27, 2024
1 parent c9a37b2 commit ef53d0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/avm2/e4x.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1230,7 +1230,7 @@ impl<'gc> E4XNode<'gc> {
};

// 2.a. If N.prefix == "" and x.[[Name]].uri == "", return
if prefix.is_empty() && self.namespace().is_none_or(|ns| ns.uri.is_empty()) {
if prefix.is_empty() && self.namespace().map_or(true, |ns| ns.uri.is_empty()) {
return;
}

Expand Down

0 comments on commit ef53d0c

Please sign in to comment.