From f5974eab61ee4f71072bdc12dca21c66e4251427 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Kl=C3=A4hn?= Date: Sun, 8 Dec 2024 11:38:57 +0100 Subject: [PATCH] typscript lint warning fixes --- sim/webxdc.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sim/webxdc.ts b/sim/webxdc.ts index 7d0130b..cb547b1 100644 --- a/sim/webxdc.ts +++ b/sim/webxdc.ts @@ -20,7 +20,7 @@ export class DevServerTransport implements Transport { constructor(url: string) { this.socket = new WebSocket(url); - this.promise = new Promise((resolve, reject) => { + this.promise = new Promise((resolve) => { this.resolveInfo = resolve; }); } @@ -71,7 +71,7 @@ export class DevServerTransport implements Transport { return new Promise((resolve, reject) => { const name = result?.name; console.log(`Deleting indexedDB database: ${name}`); - const request = window.indexedDB.deleteDatabase(name); + const request = window.indexedDB.deleteDatabase(name!); request.onsuccess = (ev) => resolve(ev); request.onerror = (ev) => reject(ev); });