Skip to content

Commit 73668e0

Browse files
committed
refactor(go-pro-page.ts): use try-catch-finally block
to wrap scanForBluetooth call
1 parent ccb1320 commit 73668e0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/app/features/settings/go-pro/go-pro.page.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ export class GoProPage implements OnInit {
7474
this.bluetoothIsScanning = false;
7575
} catch (error) {
7676
this.bluetoothScanResults = [];
77+
} finally {
7778
this.bluetoothIsScanning = false;
7879
}
7980
}

0 commit comments

Comments
 (0)