Skip to content

Commit

Permalink
chore(lint): undefined to booleans
Browse files Browse the repository at this point in the history
  • Loading branch information
mshanemc committed Nov 6, 2023
1 parent cc679c1 commit 41cf61b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/authBaseCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export abstract class AuthBaseCommand<T> extends SfCommand<T> {
}

protected async shouldExitCommand(noPrompt?: boolean, message?: string): Promise<boolean> {
if (noPrompt || Global.getEnvironmentMode() !== Mode.DEMO) {
if (Boolean(noPrompt) || Global.getEnvironmentMode() !== Mode.DEMO) {
return false;
} else {
const msg = dimMessage(message ?? messages.getMessage('warnAuth', [this.config.bin]));
Expand All @@ -43,7 +43,7 @@ export abstract class AuthBaseCommand<T> extends SfCommand<T> {
}

protected async shouldRunCommand(noPrompt?: boolean, message?: string, defaultAnswer = true): Promise<boolean> {
if (noPrompt || Global.getEnvironmentMode() === Mode.DEMO) {
if (Boolean(noPrompt) || Global.getEnvironmentMode() === Mode.DEMO) {
return true;
} else {
const msg = dimMessage(message ?? messages.getMessage('warnAuth', [this.config.bin]));
Expand Down

0 comments on commit 41cf61b

Please sign in to comment.