mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-23 13:41:37 +00:00
pkg/vm: drop bogus err check in BoolAnd() and BoolOr()
GolangCI: nilness: impossible condition: nil != nil (from govet)
This commit is contained in:
parent
613bad36e0
commit
bab187f4a8
1 changed files with 0 additions and 6 deletions
|
@ -296,9 +296,6 @@ func BoolAnd(op stack.Instruction, ctx *stack.Context, istack *stack.Invocation,
|
||||||
return FAULT, err
|
return FAULT, err
|
||||||
}
|
}
|
||||||
res := bool1.And(bool2)
|
res := bool1.And(bool2)
|
||||||
if err != nil {
|
|
||||||
return FAULT, err
|
|
||||||
}
|
|
||||||
|
|
||||||
ctx.Estack.Push(res)
|
ctx.Estack.Push(res)
|
||||||
|
|
||||||
|
@ -315,9 +312,6 @@ func BoolOr(op stack.Instruction, ctx *stack.Context, istack *stack.Invocation,
|
||||||
return FAULT, err
|
return FAULT, err
|
||||||
}
|
}
|
||||||
res := bool1.Or(bool2)
|
res := bool1.Or(bool2)
|
||||||
if err != nil {
|
|
||||||
return FAULT, err
|
|
||||||
}
|
|
||||||
|
|
||||||
ctx.Estack.Push(res)
|
ctx.Estack.Push(res)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue