diff options
Diffstat (limited to 'src/eval/mod.rs')
| -rw-r--r-- | src/eval/mod.rs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/eval/mod.rs b/src/eval/mod.rs index 9fe86ebe..58f7e4d7 100644 --- a/src/eval/mod.rs +++ b/src/eval/mod.rs @@ -269,9 +269,7 @@ impl Eval for BlockExpr { type Output = Value; fn eval(&self, ctx: &mut EvalContext) -> TypResult<Self::Output> { - if self.scoping { - ctx.scopes.enter(); - } + ctx.scopes.enter(); let mut output = Value::None; for expr in &self.exprs { @@ -279,9 +277,7 @@ impl Eval for BlockExpr { output = ops::join(output, value).at(expr.span())?; } - if self.scoping { - ctx.scopes.exit(); - } + ctx.scopes.exit(); Ok(output) } |
