From eabaa68da2da3c8e8b8da5b99c1a25b9a1dd248d Mon Sep 17 00:00:00 2001 From: Pigges Date: Mon, 9 Oct 2023 21:06:17 +0200 Subject: [PATCH] fix no argument error --- src/Cli.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Cli.js b/src/Cli.js index 7f6deec..5b101d3 100644 --- a/src/Cli.js +++ b/src/Cli.js @@ -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 || [])); } }