forked from TrueCloudLab/neoneo-go
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:
parent
f1f30fd0c5
commit
0500c8f9d7
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue