Explorar o código

Remove no longer necessary if

Leszek Wiesner %!s(int64=4) %!d(string=hai) anos
pai
achega
ef832a1922
Modificáronse 1 ficheiros con 0 adicións e 5 borrados
  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))