Auto merge of #14466 - servo:xhr-match, r=frewsxcv

Remove a pointless match block in XMLHttpRequest::initiate_async_xhr.

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14466)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2016-12-05 16:00:22 -08:00 committed by GitHub
commit 75418b7005

View file

@ -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);
}
}