瀏覽代碼

Remove no longer necessary if

Leszek Wiesner 4 年之前
父節點
當前提交
ef832a1922
共有 1 個文件被更改,包括 0 次插入5 次删除
  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))