1
0
mirror of https://github.com/bitwarden/desktop.git synced 2025-02-27 03:01:57 +01:00

Fix linting errors

This commit is contained in:
Hinton 2020-11-30 15:10:57 +01:00
parent ed0acdead2
commit 28943f4bc1
3 changed files with 6 additions and 6 deletions

View File

@ -30,7 +30,7 @@ export class MessagingMain {
case 'minimizeOnCopy': case 'minimizeOnCopy':
this.storageService.get<boolean>(ElectronConstants.minimizeOnCopyToClipboardKey).then( this.storageService.get<boolean>(ElectronConstants.minimizeOnCopyToClipboardKey).then(
(shouldMinimize) => { (shouldMinimize) => {
if (shouldMinimize && this.main.windowMain.win != null) { if (shouldMinimize && this.main.windowMain.win !== null) {
this.main.windowMain.win.minimize(); this.main.windowMain.win.minimize();
} }
}); });

View File

@ -29,7 +29,7 @@ export class NativeMessagingService {
private async messageHandler(rawMessage: any) { private async messageHandler(rawMessage: any) {
// Request to setup secure encryption // Request to setup secure encryption
if (rawMessage.command == 'setupEncryption') { if (rawMessage.command === 'setupEncryption') {
const remotePublicKey = Utils.fromB64ToArray(rawMessage.publicKey).buffer; const remotePublicKey = Utils.fromB64ToArray(rawMessage.publicKey).buffer;
const fingerprint = (await this.cryptoService.getFingerprint(await this.userService.getUserId(), remotePublicKey)).join(' '); const fingerprint = (await this.cryptoService.getFingerprint(await this.userService.getUserId(), remotePublicKey)).join(' ');