File tree 1 file changed +9
-9
lines changed
1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -69,18 +69,18 @@ export const getStore: {
69
69
}
70
70
71
71
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 } )
74
74
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' ] )
82
77
}
83
78
79
+ const client = new Client ( clientOptions )
80
+
81
+ return new Store ( { client, name } )
82
+ }
83
+
84
84
if ( typeof input ?. name === 'string' ) {
85
85
const { name } = input
86
86
const clientOptions = getClientOptions ( input )
You can’t perform that action at this time.
0 commit comments