diff options
Diffstat (limited to 'src/components/script/dom/xmlhttprequest.rs')
-rw-r--r-- | src/components/script/dom/xmlhttprequest.rs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/components/script/dom/xmlhttprequest.rs b/src/components/script/dom/xmlhttprequest.rs index 1fe615ff3e4..adbd5eac960 100644 --- a/src/components/script/dom/xmlhttprequest.rs +++ b/src/components/script/dom/xmlhttprequest.rs @@ -176,9 +176,6 @@ impl Reflectable for XMLHttpRequest { impl XMLHttpRequestDerived for EventTarget { fn is_xmlhttprequest(&self) -> bool { - match self.type_id { - XMLHttpRequestTargetTypeId(XMLHttpRequestTypeId) => true, - _ => false - } + self.type_id == XMLHttpRequestTargetTypeId(XMLHttpRequestTypeId) } -}
\ No newline at end of file +} |