Browse Source

Remove no longer necessary if

Leszek Wiesner 4 years ago
parent
commit
ef832a1922
1 changed files with 0 additions and 5 deletions
  1. 0 5
      cli/src/base/WorkingGroupsCommandBase.ts

+ 0 - 5
cli/src/base/WorkingGroupsCommandBase.ts

@@ -268,11 +268,6 @@ export default abstract class WorkingGroupsCommandBase extends AccountsCommandBa
     }
     const { flags } = this.parse(this.constructor as typeof WorkingGroupsCommandBase)
     if (flags.group) {
-      if (!AvailableGroups.includes(flags.group as any)) {
-        throw new CLIError(`Invalid group! Available values are: ${AvailableGroups.join(', ')}`, {
-          exit: ExitCodes.InvalidInput,
-        })
-      }
       this.group = flags.group
     }
     this.log(chalk.white('Current Group: ' + this.group))