Skip to content
Permalink
Browse files

Use if-let in set_inline_event_listener.

  • Loading branch information
Ms2ger committed Feb 11, 2016
1 parent 0b27807 commit 1b50023a08e43100b1d70ce64799a454ae3defca
Showing with 2 additions and 2 deletions.
  1. +2 −2 components/script/dom/eventtarget.rs
@@ -221,10 +221,10 @@ impl EventTarget {
}
}
None => {
if listener.is_some() {
if let Some(listener) = listener {
entries.push(EventListenerEntry {
phase: ListenerPhase::Bubbling,
listener: EventListenerType::Inline(listener.unwrap()),
listener: EventListenerType::Inline(listener),
});
}
}

0 comments on commit 1b50023

Please sign in to comment.
You can’t perform that action at this time.