Skip to content

Commit

Permalink
BaseJsonRpcTool: use args.isEmpty() (rather than args.size() == 0)
Browse files Browse the repository at this point in the history
  • Loading branch information
msgilligan committed Sep 20, 2023
1 parent d678c7e commit 91a570f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public void run(Call call) {

public void run(CommonsCLICall call) {
List<String> args = call.line.getArgList();
if (args.size() == 0) {
if (args.isEmpty()) {
printError(call, "jsonrpc method required");
printHelp(call, usage);
throw new ToolException(1, "jsonrpc method required");
Expand Down

0 comments on commit 91a570f

Please sign in to comment.