From 44cd222626aa1934eb11e464f11800592fc16619 Mon Sep 17 00:00:00 2001 From: Hinton Date: Mon, 12 Oct 2020 18:03:16 +0200 Subject: [PATCH] Minor cleanup --- proxy/app.ts | 4 ++-- src/services/nativeMessaging.service.ts | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/proxy/app.ts b/proxy/app.ts index 3fac5b15d3..5a88089d88 100644 --- a/proxy/app.ts +++ b/proxy/app.ts @@ -4,8 +4,8 @@ import IPC from './ipc'; const args = process.argv.slice(2); class Proxy { - ipc: IPC; - nativeMessage: NativeMessage; + private ipc: IPC; + private nativeMessage: NativeMessage; constructor() { this.ipc = new IPC(); diff --git a/src/services/nativeMessaging.service.ts b/src/services/nativeMessaging.service.ts index e0078997bb..b029c4b080 100644 --- a/src/services/nativeMessaging.service.ts +++ b/src/services/nativeMessaging.service.ts @@ -202,16 +202,15 @@ export class NativeMessagingService { } const response = await this.biometricMain.requestCreate(); - if (response) { this.send({command: 'biometricUnlock', response: 'unlocked'}, socket); } else { this.send({command: 'biometricUnlock', response: 'canceled'}, socket); } - + break; default: - console.error("UNKNOWN COMMAND") + console.error('UNKNOWN COMMAND') } } }