Skip to content
This repository was archived by the owner on May 11, 2020. It is now read-only.

Commit 1ea36af

Browse files
Address feedback
Co-Authored-By: Sebastien Binet <[email protected]>
1 parent d9f6e2b commit 1ea36af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

validate/validate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ func verifyBody(fn *wasm.FunctionSig, body *wasm.FunctionBody, module *wasm.Modu
122122
case frame == nil || frame.op == operators.Call:
123123
return vm, UnmatchedOpError(op)
124124
// IF block with no else cannot have a result.
125-
case (frame.op == operators.If) && len(frame.endTypes) > 0:
125+
case frame.op == operators.If && len(frame.endTypes) > 0:
126126
return vm, UnmatchedIfValueErr(frame.endTypes[0])
127127
}
128128
for _, t := range frame.endTypes {

0 commit comments

Comments
 (0)