Skip to content

Commit

Permalink
remove unnecessary condition
Browse files Browse the repository at this point in the history
  • Loading branch information
shnmorimoto committed Mar 29, 2020
1 parent f7d4a37 commit fa8afbb
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions components/script/dom/bindings/interface.rs
Expand Up @@ -375,9 +375,6 @@ pub fn is_exposed_in(object: HandleObject, globals: Globals) -> bool {
unsafe {
let unwrapped = UncheckedUnwrapObject(object.get(), /* stopAtWindowProxy = */ 0);
let dom_class = get_dom_class(unwrapped).unwrap();
if (dom_class.global.is_empty()) && (!globals.is_empty()) {
return false;
}
globals.contains(dom_class.global)
}
}
Expand Down

0 comments on commit fa8afbb

Please sign in to comment.