File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -1086,18 +1086,16 @@ namespace Sass {
1086
1086
Complex_Selector* Complex_Selector::first ()
1087
1087
{
1088
1088
// declare variables used in loop
1089
- Complex_Selector* cur = this -> tail_ ;
1090
- const Compound_Selector* head = head_ ;
1089
+ Complex_Selector* cur = this ;
1090
+ const Compound_Selector* head;
1091
1091
// processing loop
1092
1092
while (cur)
1093
1093
{
1094
1094
// get the head
1095
1095
head = cur->head_ ;
1096
- // check for single parent ref
1097
- if (head && head->length () == 1 )
1098
- {
1099
- // abort (and return) if it is not a parent selector
1100
- if (!dynamic_cast <Parent_Selector*>((*head)[0 ])) break ;
1096
+ // abort (and return) if it is not a parent selector
1097
+ if (!head || head->length () != 1 || !dynamic_cast <Parent_Selector*>((*head)[0 ])) {
1098
+ break ;
1101
1099
}
1102
1100
// advance to next
1103
1101
cur = cur->tail_ ;
You can’t perform that action at this time.
0 commit comments