fix no argument error

This commit is contained in:
Pigges 2023-10-09 21:06:17 +02:00
parent 2225835013
commit eabaa68da2

View file

@ -76,7 +76,7 @@ export default class Cli {
const params = cmd.length > 1 ? cmd.shift() && cmd : "";
console.log(await this.client.sendRequest(method, params));
console.log(await this.client.sendRequest(method, params || []));
}
}