Skip to content

Commit

Permalink
Linter go brrr
Browse files Browse the repository at this point in the history
  • Loading branch information
macmv committed Oct 5, 2023
1 parent 263e92a commit f594a6b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/commands/cloud-login.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import { Command } from "@oclif/core";
import { underline, blue } from "chalk";

const DEFAULT_NAME = "cloud";
const DB = process.env["FAUNA_URL"] ?? "https://db.fauna.com";
const AUTH = process.env["FAUNA_AUTH"] ?? "https://auth.console.fauna.com";
const DB = process.env.FAUNA_URL ?? "https://db.fauna.com";
const AUTH = process.env.FAUNA_AUTH ?? "https://auth.console.fauna.com";

type Regions = {
[key: string]: Region;
Expand All @@ -22,7 +22,7 @@ class Region {
}

endpointName(base: string) {
if (this.name == "global") {
if (this.name === "global") {
return base;
} else {
return `${base}-${this.name}`;
Expand Down Expand Up @@ -87,7 +87,7 @@ export default class CloudLoginCommand extends Command {
base: string,
regions: Regions
): Promise<string> {
return await select({
return select({
message:
"Endpoints created. Which endpoint would you like to set as default?",
choices: [
Expand Down Expand Up @@ -153,12 +153,12 @@ export default class CloudLoginCommand extends Command {
if (error.code === "otp_invalid") {
this.log(error.message);
}
return await this.otp({ email, password });
return this.otp({ email, password });
}

if (error.code === "invalid_credentials") {
this.log(error.message);
return await this.passwordStrategy();
return this.passwordStrategy();
}

throw error;
Expand Down

0 comments on commit f594a6b

Please sign in to comment.