diff --git a/src/workers.ts b/src/workers.ts index f00c43a..ffd3e96 100644 --- a/src/workers.ts +++ b/src/workers.ts @@ -2,4 +2,4 @@ import SqliteWorker from './workers/sqlite.ts'; const sqliteWorker = new SqliteWorker('./data/db.sqlite3'); -export { sqliteWorker }; \ No newline at end of file +export { sqliteWorker }; diff --git a/src/workers/sqlite.worker.ts b/src/workers/sqlite.worker.ts index b21f467..e271d67 100644 --- a/src/workers/sqlite.worker.ts +++ b/src/workers/sqlite.worker.ts @@ -9,7 +9,7 @@ type Msg = | ['query', [string, unknown[]]]; function call([cmd, args]: Msg) { - switch(cmd) { + switch (cmd) { case 'open': return handleOpen(args[0]); case 'query': @@ -31,4 +31,4 @@ self.addEventListener('message', (event: MessageEvent<[string, Msg]>) => { self.postMessage([id, result]); }); -self.postMessage(['ready']); \ No newline at end of file +self.postMessage(['ready']);