move check inside for loop
This commit is contained in:
parent
1749f65fd9
commit
f9dfd05ea1
@ -144,14 +144,14 @@ impl Function {
|
|||||||
span: f.var.span,
|
span: f.var.span,
|
||||||
},
|
},
|
||||||
)?;
|
)?;
|
||||||
}
|
let for_stmts = eat_stmts(
|
||||||
let for_stmts = eat_stmts(
|
&mut f.body.clone().into_iter().peekmore(),
|
||||||
&mut f.body.clone().into_iter().peekmore(),
|
&mut self.scope,
|
||||||
&mut self.scope,
|
super_selector,
|
||||||
super_selector,
|
)?;
|
||||||
)?;
|
if let Some(v) = self.call(super_selector, for_stmts)? {
|
||||||
if let Some(v) = self.call(super_selector, for_stmts)? {
|
return Ok(Some(v));
|
||||||
return Ok(Some(v));
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Stmt::AtRule(AtRule::If(i)) => {
|
Stmt::AtRule(AtRule::If(i)) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user