mirror of
https://github.com/servo/servo.git
synced 2025-08-02 12:10:29 +01:00
Remove a pointless match block in XMLHttpRequest::initiate_async_xhr.
This commit is contained in:
parent
6c3e94805f
commit
61e8e2403a
1 changed files with 1 additions and 8 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue