From 0d65fe348b85edc5d0fe4f1efa18ffb5674a18a4 Mon Sep 17 00:00:00 2001 From: Eugene Pankov Date: Sun, 1 Mar 2020 17:07:11 +0100 Subject: [PATCH] lint --- app/lib/app.ts | 4 ++-- app/lib/window.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/lib/app.ts b/app/lib/app.ts index 5dfa8bcb..c6426592 100644 --- a/app/lib/app.ts +++ b/app/lib/app.ts @@ -58,7 +58,7 @@ export class Application { } } - async send (event: string, ...args): void { + async send (event: string, ...args): Promise { if (!this.hasWindows()) { await this.newWindow() } @@ -97,7 +97,7 @@ export class Application { } } - hasWindows (): bool { + hasWindows (): boolean { return !!this.windows.length } diff --git a/app/lib/window.ts b/app/lib/window.ts index 1aee9bbc..42a8a055 100644 --- a/app/lib/window.ts +++ b/app/lib/window.ts @@ -155,7 +155,7 @@ export class Window { this.window.webContents.send(event, ...args) } - isDestroyed (): void { + isDestroyed (): boolean { return !this.window || this.window.isDestroyed() }