fix no argument error
This commit is contained in:
parent
2225835013
commit
eabaa68da2
1 changed files with 1 additions and 1 deletions
|
@ -76,7 +76,7 @@ export default class Cli {
|
||||||
|
|
||||||
const params = cmd.length > 1 ? cmd.shift() && cmd : "";
|
const params = cmd.length > 1 ? cmd.shift() && cmd : "";
|
||||||
|
|
||||||
console.log(await this.client.sendRequest(method, params));
|
console.log(await this.client.sendRequest(method, params || []));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue