move check inside for loop
@@ -144,7 +144,6 @@ impl Function {
span: f.var.span,
},
)?;
- }
let for_stmts = eat_stmts(
&mut f.body.clone().into_iter().peekmore(),
&mut self.scope,
@@ -154,6 +153,7 @@ impl Function {
return Ok(Some(v));
}
}
+ }
Stmt::AtRule(AtRule::If(i)) => {
let if_stmts = i.eval(&mut self.scope, super_selector)?;
if let Some(v) = self.call(super_selector, if_stmts)? {
