Skip to content

Commit 654786b

Browse files
authored
Merge pull request #442 from wtetsu/lint_js
Minor JS code cleanup
2 parents d14ce49 + 145eb25 commit 654786b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/windows/BluetoothLePlugin.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,6 @@ module.exports = {
106106
return;
107107
}
108108

109-
var services;
110-
var searchServices;
111109
var deviceIdsFound = [];
112110
var result = [];
113111
var selector = "System.Devices.InterfaceClassGuid:=\"{6E3BB679-4372-40C8-9EAA-4509DF260CD8}\" AND System.Devices.InterfaceEnabled:=System.StructuredQueryType.Boolean#True";
@@ -692,7 +690,7 @@ function getDescriptor(deviceId, serviceId, characteristicId, descriptorId) {
692690
return new WinJS.Promise(function (successCallback, errorCallback, progressDispatch) {
693691
getCharacteristic(deviceId, serviceId, characteristicId).then(function (characteristic, deviceName) {
694692
if (descriptorId.length == 4) {
695-
descriptorId = gatt.GattDescriptor.convertShortIdToUuid(parseInt("0x" + descriptorId, 16))
693+
descriptorId = gatt.GattDescriptor.convertShortIdToUuid(parseInt("0x" + descriptorId, 16));
696694
}
697695
var descriptors = characteristic.getDescriptors(descriptorId);
698696
if (descriptors.length > 0) {

0 commit comments

Comments
 (0)