From bab187f4a8f59abdca2a9869789677566bec2332 Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Mon, 12 Aug 2019 17:59:59 +0300 Subject: [PATCH] pkg/vm: drop bogus err check in BoolAnd() and BoolOr() GolangCI: nilness: impossible condition: nil != nil (from govet) --- pkg/vm/vm_ops_maths.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/pkg/vm/vm_ops_maths.go b/pkg/vm/vm_ops_maths.go index ab4b52f71..264278092 100644 --- a/pkg/vm/vm_ops_maths.go +++ b/pkg/vm/vm_ops_maths.go @@ -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)