From 0500c8f9d72d7524ceb47026a46896a02c975ed5 Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Wed, 12 May 2021 20:19:24 +0300 Subject: [PATCH] cli/wallet: fix error handling cli/wallet/wallet.go:527:19: Error return value of `cli.NewExitError` is not checked (errcheck) cli.NewExitError("valid account address must be provided", 1) --- cli/wallet/wallet.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/wallet/wallet.go b/cli/wallet/wallet.go index 82e165925..89df95be0 100644 --- a/cli/wallet/wallet.go +++ b/cli/wallet/wallet.go @@ -524,7 +524,7 @@ func removeAccount(ctx *cli.Context) error { addr := ctx.Generic("address").(*flags.Address) if !addr.IsSet { - cli.NewExitError("valid account address must be provided", 1) + return cli.NewExitError("valid account address must be provided", 1) } acc := wall.GetAccount(addr.Uint160()) if acc == nil {