Skip to content

Commit

Permalink
Run Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
DallasHoff committed Sep 14, 2024
1 parent b9e7289 commit 5af12ca
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ export class SQLocal {
constructor(databasePath: string);
constructor(config: ClientConfig);
constructor(config: string | ClientConfig) {
this.config = typeof config === 'string' ? { databasePath: config } : config;
this.config =
typeof config === 'string' ? { databasePath: config } : config;

if (typeof globalThis.Worker !== 'undefined') {
this.worker = new Worker(new URL('./worker', import.meta.url), {
Expand Down Expand Up @@ -109,7 +110,7 @@ export class SQLocal {
if (!this.worker) {
throw new Error(
'This SQLocal client is not connected to a database. This is likely due to the client being initialized in a server-side environment.'
)
);
}

if (this.isWorkerDestroyed === true) {
Expand Down

0 comments on commit 5af12ca

Please sign in to comment.