Skip to content

Commit

Permalink
#23330 fix clear_entries_by_name_and_type bug
Browse files Browse the repository at this point in the history
  • Loading branch information
shnmorimoto authored and jdm committed Dec 13, 2019
1 parent d25d658 commit 7d184c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/script/dom/performance.rs
Expand Up @@ -96,10 +96,10 @@ impl PerformanceEntryList {
entry_type: Option<DOMString>,
) {
self.entries.retain(|e| {
name.as_ref().map_or(true, |name_| *e.name() == *name_) &&
name.as_ref().map_or(true, |name_| *e.name() != *name_) &&
entry_type
.as_ref()
.map_or(true, |type_| *e.entry_type() == *type_)
.map_or(true, |type_| *e.entry_type() != *type_)
});
}

Expand Down

0 comments on commit 7d184c1

Please sign in to comment.