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)
This commit is contained in:
Roman Khimov 2021-05-12 20:19:24 +03:00
parent f1f30fd0c5
commit 0500c8f9d7

View file

@ -524,7 +524,7 @@ func removeAccount(ctx *cli.Context) error {
addr := ctx.Generic("address").(*flags.Address) addr := ctx.Generic("address").(*flags.Address)
if !addr.IsSet { 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()) acc := wall.GetAccount(addr.Uint160())
if acc == nil { if acc == nil {