rpcclient: disable linter for documentation example
Disable the following linter warning: ``` superfluous-else: if block ends with call to panic function, so drop this else and outdent its block (revive) ``` Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
This commit is contained in:
parent
6e0af5ac90
commit
3544d65ecd
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ func ExampleInvoker() {
|
||||||
res, _ := inv.Call(neo.Hash, "transfer", acc, util.Uint160{1, 2, 3}, 1, nil)
|
res, _ := inv.Call(neo.Hash, "transfer", acc, util.Uint160{1, 2, 3}, 1, nil)
|
||||||
if res.State == vmstate.Halt.String() {
|
if res.State == vmstate.Halt.String() {
|
||||||
panic("NEO is broken!") // inv has no signers and transfer requires a witness to be performed.
|
panic("NEO is broken!") // inv has no signers and transfer requires a witness to be performed.
|
||||||
} else {
|
} else { // nolint:superfluous-else // superfluous-else: if block ends with call to panic function, so drop this else and outdent its block (revive)
|
||||||
println("ok") // this actually should fail
|
println("ok") // this actually should fail
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue