From f9dfd05ea14bdd9f86edcadb4bbc867f72cd9c31 Mon Sep 17 00:00:00 2001 From: ConnorSkees <39542938+ConnorSkees@users.noreply.github.com> Date: Thu, 23 Apr 2020 15:16:27 -0400 Subject: [PATCH] move check inside for loop --- src/atrule/function.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/atrule/function.rs b/src/atrule/function.rs index 7fb0998..6ba1038 100644 --- a/src/atrule/function.rs +++ b/src/atrule/function.rs @@ -144,14 +144,14 @@ impl Function { span: f.var.span, }, )?; - } - let for_stmts = eat_stmts( - &mut f.body.clone().into_iter().peekmore(), - &mut self.scope, - super_selector, - )?; - if let Some(v) = self.call(super_selector, for_stmts)? { - return Ok(Some(v)); + let for_stmts = eat_stmts( + &mut f.body.clone().into_iter().peekmore(), + &mut self.scope, + super_selector, + )?; + if let Some(v) = self.call(super_selector, for_stmts)? { + return Ok(Some(v)); + } } } Stmt::AtRule(AtRule::If(i)) => {