File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ export type OAuthCredentials = {
1919/**
2020 * The environment in which the server client is running.
2121 */
22- export type ProjectEnvironment = "development" | "production"
22+ export type ProjectEnvironment = "development" | "production" ;
2323
2424/**
2525 * Options for creating a server-side client.
@@ -358,8 +358,8 @@ export class BackendClient {
358358 * @param opts - The options for configuring the server client.
359359 */
360360 constructor ( opts : BackendClientOpts ) {
361- this . ensureValidEnvironment ( opts . environment )
362- this . environment = opts . environment ! !
361+ this . ensureValidEnvironment ( opts . environment ) ;
362+ this . environment = opts . environment ! ;
363363
364364 this . projectId = opts . projectId ;
365365 if ( ! this . projectId ) {
@@ -377,7 +377,10 @@ export class BackendClient {
377377 }
378378
379379 private ensureValidEnvironment ( environment ?: string ) {
380- if ( ! environment || ! [ "development" , "production" ] . includes ( environment ) ) {
380+ if ( ! environment || ! [
381+ "development" ,
382+ "production" ,
383+ ] . includes ( environment ) ) {
381384 throw new Error ( "Project environment is required. Supported environments are development and production." ) ;
382385 }
383386 }
You can’t perform that action at this time.
0 commit comments