pkg/vm: drop bogus err check in BoolAnd() and BoolOr()

GolangCI:
  nilness: impossible condition: nil != nil (from govet)
This commit is contained in:
Roman Khimov 2019-08-12 17:59:59 +03:00
parent 613bad36e0
commit bab187f4a8

View file

@ -296,9 +296,6 @@ func BoolAnd(op stack.Instruction, ctx *stack.Context, istack *stack.Invocation,
return FAULT, err
}
res := bool1.And(bool2)
if err != nil {
return FAULT, err
}
ctx.Estack.Push(res)
@ -315,9 +312,6 @@ func BoolOr(op stack.Instruction, ctx *stack.Context, istack *stack.Invocation,
return FAULT, err
}
res := bool1.Or(bool2)
if err != nil {
return FAULT, err
}
ctx.Estack.Push(res)