Skip to content

Commit 8de3f44

Browse files
committed
Apply linter suggestions
1 parent 7abedce commit 8de3f44

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

packages/sdk/src/server/index.ts

+7-4
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)