mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
clippy: remove unneeded return statements (#31923)
This commit is contained in:
parent
7349ce5b6a
commit
0728378424
10 changed files with 15 additions and 19 deletions
|
@ -338,7 +338,7 @@ impl Callback for TransmitBodyPromiseRejectionHandler {
|
|||
fn callback(&self, _cx: JSContext, _v: HandleValue, _realm: InRealm) {
|
||||
// Step 5.4, the "rejection" steps.
|
||||
let _ = self.control_sender.send(BodyChunkRequest::Error);
|
||||
return self.stream.stop_reading();
|
||||
self.stream.stop_reading();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue