diff --git a/components/script/dom/bluetooth.rs b/components/script/dom/bluetooth.rs index 6984a50f2a4..6125680d637 100644 --- a/components/script/dom/bluetooth.rs +++ b/components/script/dom/bluetooth.rs @@ -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; }