mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
fix redundant closures in component/script/dom (#31917)
* fixed unnecessary conversions * resolved conflicts * resolved conflicts * fix redundant closures in component/script/dom * resolved conflicts * fixed formatting
This commit is contained in:
parent
f183170786
commit
1bc63801e7
26 changed files with 35 additions and 44 deletions
|
@ -146,7 +146,7 @@ impl AsyncBluetoothListener for BluetoothRemoteGATTServer {
|
|||
// Step 5.2.3
|
||||
if self.Device().is_represented_device_null() {
|
||||
if let Err(e) = self.Device().garbage_collect_the_connection() {
|
||||
return promise.reject_error(Error::from(e));
|
||||
return promise.reject_error(e);
|
||||
}
|
||||
return promise.reject_error(Error::Network);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue