Skip to content

Commit 12b80dd

Browse files
committed
chore: lint
1 parent 513953d commit 12b80dd

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

src/bluetooth.common.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,9 @@ export function prepareArgs(target: Object, propertyKey: string, descriptor: Typ
7575
}
7676

7777
export interface BluetoothOptions {
78-
restoreIdentifier: string | null;
79-
showPowerAlertPopup: boolean;
80-
disableAndroidQueue: boolean;
78+
restoreIdentifier: string | null;
79+
showPowerAlertPopup: boolean;
80+
disableAndroidQueue: boolean;
8181
}
8282

8383
export abstract class BluetoothCommon extends Observable {

src/bluetooth.ios.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import {
22
BluetoothCommon,
33
BluetoothError,
4+
BluetoothOptions,
45
CLog,
56
CLogTypes,
67
ConnectOptions,
@@ -17,7 +18,6 @@ import {
1718
WriteOptions,
1819
bluetoothEnabled,
1920
prepareArgs,
20-
BluetoothOptions,
2121
} from './bluetooth.common';
2222
import { Trace } from '@nativescript/core';
2323

@@ -703,14 +703,14 @@ export class Bluetooth extends BluetoothCommon {
703703
constructor(restoreIdentifierOrOptions: string | Partial<BluetoothOptions> | null = 'ns_bluetooth', private showPowerAlertPopup = false) {
704704
super();
705705
if (typeof restoreIdentifierOrOptions === 'object') {
706-
if (restoreIdentifierOrOptions.restoreIdentifier === undefined) {
707-
this.restoreIdentifier = 'ns_bluetooth';
708-
} else {
709-
this.restoreIdentifier = restoreIdentifierOrOptions.restoreIdentifier;
710-
}
711-
this.showPowerAlertPopup = !!restoreIdentifierOrOptions.showPowerAlertPopup;
706+
if (restoreIdentifierOrOptions.restoreIdentifier === undefined) {
707+
this.restoreIdentifier = 'ns_bluetooth';
708+
} else {
709+
this.restoreIdentifier = restoreIdentifierOrOptions.restoreIdentifier;
710+
}
711+
this.showPowerAlertPopup = !!restoreIdentifierOrOptions.showPowerAlertPopup;
712712
} else {
713-
this.restoreIdentifier = restoreIdentifierOrOptions;
713+
this.restoreIdentifier = restoreIdentifierOrOptions;
714714
}
715715

716716
if (Trace.isEnabled()) {

0 commit comments

Comments
 (0)