aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/xmlhttprequest.rs
diff options
context:
space:
mode:
authorMs2ger <Ms2ger@gmail.com>2016-12-05 13:58:52 -1000
committerMs2ger <Ms2ger@gmail.com>2016-12-05 13:58:52 -1000
commit61e8e2403a47dd1cc818918ea21b5d1f43c97bb8 (patch)
tree49b4604b941707f5ad7498f6455dcaf044bcab3d /components/script/dom/xmlhttprequest.rs
parent6c3e94805f74e78b091b37fe374af12ad2249528 (diff)
downloadservo-61e8e2403a47dd1cc818918ea21b5d1f43c97bb8.tar.gz
servo-61e8e2403a47dd1cc818918ea21b5d1f43c97bb8.zip
Remove a pointless match block in XMLHttpRequest::initiate_async_xhr.
Diffstat (limited to 'components/script/dom/xmlhttprequest.rs')
-rw-r--r--components/script/dom/xmlhttprequest.rs9
1 files changed, 1 insertions, 8 deletions
diff --git a/components/script/dom/xmlhttprequest.rs b/components/script/dom/xmlhttprequest.rs
index 292de083c84..b7706114ad1 100644
--- a/components/script/dom/xmlhttprequest.rs
+++ b/components/script/dom/xmlhttprequest.rs
@@ -240,14 +240,7 @@ impl XMLHttpRequest {
}
fn process_response_eof(&mut self, response: Result<(), NetworkError>) {
- let rv = match response {
- Ok(()) => {
- self.xhr.root().process_response_complete(self.gen_id, Ok(()))
- }
- Err(e) => {
- self.xhr.root().process_response_complete(self.gen_id, Err(e))
- }
- };
+ let rv = self.xhr.root().process_response_complete(self.gen_id, response);
*self.sync_status.borrow_mut() = Some(rv);
}
}