From 1ea36aff7d9088708d878379def302a40710be01 Mon Sep 17 00:00:00 2001 From: Twitch Date: Thu, 17 Oct 2019 12:31:54 +1100 Subject: [PATCH] Address feedback Co-Authored-By: Sebastien Binet --- validate/validate.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/validate/validate.go b/validate/validate.go index fa8596f2..4b7e3879 100644 --- a/validate/validate.go +++ b/validate/validate.go @@ -122,7 +122,7 @@ func verifyBody(fn *wasm.FunctionSig, body *wasm.FunctionBody, module *wasm.Modu case frame == nil || frame.op == operators.Call: return vm, UnmatchedOpError(op) // IF block with no else cannot have a result. - case (frame.op == operators.If) && len(frame.endTypes) > 0: + case frame.op == operators.If && len(frame.endTypes) > 0: return vm, UnmatchedIfValueErr(frame.endTypes[0]) } for _, t := range frame.endTypes {