From bc87d3e8e6f1fb6b6c7ec57358f4fea7398fd5da Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Mon, 12 Aug 2019 18:15:48 +0300 Subject: [PATCH] pkg/vm: fix GolangCI's SA4009 in RET() SA4009: argument ctx is overwritten before first use (from staticcheck) It should be OK here. --- pkg/vm/vm_ops_flow.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/vm/vm_ops_flow.go b/pkg/vm/vm_ops_flow.go index 71f32d42d..45a8248da 100644 --- a/pkg/vm/vm_ops_flow.go +++ b/pkg/vm/vm_ops_flow.go @@ -9,6 +9,7 @@ import ( // RET Returns from the current context // Returns HALT if there are nomore context's to run func RET(op stack.Instruction, ctx *stack.Context, istack *stack.Invocation, rstack *stack.RandomAccess) (Vmstate, error) { + _ = ctx // fix SA4009 warning // Pop current context from the Inovation stack ctx, err := istack.PopCurrentContext()