From dd4b0cf6206a3c442ad7c3f268106a4b5fb8b4f2 Mon Sep 17 00:00:00 2001 From: Zakor Gyula Date: Mon, 14 Nov 2016 11:19:26 +0100 Subject: [PATCH] Simplify RequestDevice function in bluetooth.rs --- components/script/dom/bluetooth.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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; }