mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Simplify RequestDevice function in bluetooth.rs
This commit is contained in:
parent
30f924d8f6
commit
dd4b0cf620
1 changed files with 1 additions and 5 deletions
|
@ -337,11 +337,7 @@ impl BluetoothMethods for Bluetooth {
|
|||
return p;
|
||||
}
|
||||
// Step 2.
|
||||
if !option.acceptAllDevices {
|
||||
self.request_bluetooth_devices(&p, &option.filters, &option.optionalServices);
|
||||
} else {
|
||||
self.request_bluetooth_devices(&p, &None, &option.optionalServices);
|
||||
}
|
||||
self.request_bluetooth_devices(&p, &option.filters, &option.optionalServices);
|
||||
// TODO(#4282): Step 3-5: Reject and resolve promise.
|
||||
return p;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue