We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7b9980 commit fcd8d19Copy full SHA for fcd8d19
src/index.ts
@@ -44,13 +44,13 @@ async function main(action: string, option: Option) {
44
}
45
const cckey = await CCKey.create({});
46
try {
47
+ if (!_.includes(actions, action)) {
48
+ throw new CLIError(CLIErrorType.InvalidAction);
49
+ }
50
const accountType = getOpt(option, "account-type") as AccountType;
51
if (!_.includes(["platform", "asset"], accountType)) {
52
throw new CLIError(CLIErrorType.InvalidAccountType);
53
- if (!_.includes(actions, action)) {
- throw new CLIError(CLIErrorType.InvalidAction);
- }
54
55
switch (action) {
56
case "getKeys":
0 commit comments