mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +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;
|
return p;
|
||||||
}
|
}
|
||||||
// Step 2.
|
// Step 2.
|
||||||
if !option.acceptAllDevices {
|
|
||||||
self.request_bluetooth_devices(&p, &option.filters, &option.optionalServices);
|
self.request_bluetooth_devices(&p, &option.filters, &option.optionalServices);
|
||||||
} else {
|
|
||||||
self.request_bluetooth_devices(&p, &None, &option.optionalServices);
|
|
||||||
}
|
|
||||||
// TODO(#4282): Step 3-5: Reject and resolve promise.
|
// TODO(#4282): Step 3-5: Reject and resolve promise.
|
||||||
return p;
|
return p;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue