Skip to content

Commit e2dbd22

Browse files
authored
fix: lint errors
1 parent 67a13bf commit e2dbd22

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

Diff for: src/store_factory.ts

+9-9
Original file line numberDiff line numberDiff line change
@@ -69,18 +69,18 @@ export const getStore: {
6969
}
7070

7171
if (typeof input?.name === 'string' && typeof input?.siteID === 'string' && typeof input?.token === 'string') {
72-
const { siteID, token } = input
73-
const clientOptions = getClientOptions(input, { siteID, token })
72+
const { name, siteID, token } = input
73+
const clientOptions = getClientOptions(input, { siteID, token })
7474

75-
if (!name || !siteID || !token) {
76-
throw new MissingBlobsEnvironmentError(['name', 'siteID', 'token'])
77-
}
78-
79-
const client = new Client(clientOptions)
80-
81-
return new Store({ client, name })
75+
if (!name || !siteID || !token) {
76+
throw new MissingBlobsEnvironmentError(['name', 'siteID', 'token'])
8277
}
8378

79+
const client = new Client(clientOptions)
80+
81+
return new Store({ client, name })
82+
}
83+
8484
if (typeof input?.name === 'string') {
8585
const { name } = input
8686
const clientOptions = getClientOptions(input)

0 commit comments

Comments
 (0)