File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments