Skip to content

Commit f98bc49

Browse files
committed
chore: lint fix
1 parent 3268e11 commit f98bc49

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/bluetooth.android.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -495,10 +495,8 @@ function initLeScanCallback() {
495495
onPeripheralDiscovered: (data: Peripheral) => void;
496496

497497
constructor(private owner: WeakRef<Bluetooth>) {
498-
super(
499-
{
500-
onLeScan: function(device: android.bluetooth.BluetoothDevice, rssi: number, data: number[])
501-
{
498+
super({
499+
onLeScan: function (device: android.bluetooth.BluetoothDevice, rssi: number, data: number[]) {
502500
CLog(CLogTypes.info, `TNS_LeScanCallback.onLeScan ---- device: ${device}, rssi: ${rssi}, scanRecord: ${data}`);
503501

504502
let stateObject = this.owner.get().connections[device.getAddress()];
@@ -523,7 +521,7 @@ function initLeScanCallback() {
523521
this.onPeripheralDiscovered && this.onPeripheralDiscovered(payload);
524522
this.owner.get().sendEvent(Bluetooth.device_discovered_event, payload);
525523
}
526-
}
524+
},
527525
});
528526
/**
529527
* Callback reporting an LE device found during a device scan initiated by the startLeScan(BluetoothAdapter.LeScanCallback) function.
@@ -1610,6 +1608,7 @@ export class Bluetooth extends BluetoothCommon {
16101608
if (args.autoDiscoverAll !== false) {
16111609
return this.discoverAll({ peripheralUUID: pUUID });
16121610
}
1611+
return null;
16131612
})
16141613
.then((result) => {
16151614
const stateObject = this.connections[pUUID];

0 commit comments

Comments
 (0)