Skip to content

Commit 54b2390

Browse files
committed
Don't reassign root after check nesting visitor
1 parent 68a0c79 commit 54b2390

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/context.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -651,11 +651,11 @@ namespace Sass {
651651
Cssize cssize(*this, &backtrace);
652652
CheckNesting check_nesting;
653653
// check nesting
654-
root = root->perform(&check_nesting)->block();
654+
root->perform(&check_nesting)->block();
655655
// expand and eval the tree
656656
root = root->perform(&expand)->block();
657657
// check nesting
658-
root = root->perform(&check_nesting)->block();
658+
root->perform(&check_nesting)->block();
659659
// merge and bubble certain rules
660660
root = root->perform(&cssize)->block();
661661
// should we extend something?

0 commit comments

Comments
 (0)