diff --git a/crates/rune/src/compile/v1/assemble.rs b/crates/rune/src/compile/v1/assemble.rs index 0ba7a10bd..8730b4f8d 100644 --- a/crates/rune/src/compile/v1/assemble.rs +++ b/crates/rune/src/compile/v1/assemble.rs @@ -2277,7 +2277,7 @@ fn expr_if<'a, 'hir>( cx.scopes.pop(branch, scope)?; - if !asm.converging() && it.peek().is_some() { + if asm.converging() && it.peek().is_some() { cx.asm.jump(&end_label, branch)?; } }