Skip to content

Commit

Permalink
typscript lint warning fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Septias committed Dec 8, 2024
1 parent f6f90f0 commit f5974ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sim/webxdc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});
}
Expand Down Expand Up @@ -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);
});
Expand Down

0 comments on commit f5974ea

Please sign in to comment.