pkg/vm: fix GolangCI's SA4009 in RET()

SA4009: argument ctx is overwritten before first use (from staticcheck)

It should be OK here.
This commit is contained in:
Roman Khimov 2019-08-12 18:15:48 +03:00
parent 9be53e5961
commit bc87d3e8e6

View file

@ -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()