File tree 1 file changed +7
-4
lines changed
1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ export type OAuthCredentials = {
19
19
/**
20
20
* The environment in which the server client is running.
21
21
*/
22
- export type ProjectEnvironment = "development" | "production"
22
+ export type ProjectEnvironment = "development" | "production" ;
23
23
24
24
/**
25
25
* Options for creating a server-side client.
@@ -358,8 +358,8 @@ export class BackendClient {
358
358
* @param opts - The options for configuring the server client.
359
359
*/
360
360
constructor ( opts : BackendClientOpts ) {
361
- this . ensureValidEnvironment ( opts . environment )
362
- this . environment = opts . environment ! !
361
+ this . ensureValidEnvironment ( opts . environment ) ;
362
+ this . environment = opts . environment ! ;
363
363
364
364
this . projectId = opts . projectId ;
365
365
if ( ! this . projectId ) {
@@ -377,7 +377,10 @@ export class BackendClient {
377
377
}
378
378
379
379
private ensureValidEnvironment ( environment ?: string ) {
380
- if ( ! environment || ! [ "development" , "production" ] . includes ( environment ) ) {
380
+ if ( ! environment || ! [
381
+ "development" ,
382
+ "production" ,
383
+ ] . includes ( environment ) ) {
381
384
throw new Error ( "Project environment is required. Supported environments are development and production." ) ;
382
385
}
383
386
}
You can’t perform that action at this time.
0 commit comments