File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1070,10 +1070,10 @@ namespace Sass {
1070
1070
// the result so that, if two selectors are identical, we keep the first one.
1071
1071
std::vector<ComplexSelectorObj> result; size_t numOriginals = 0 ;
1072
1072
1073
- // Use label to quit outer loop
1074
- redo:
1073
+ size_t i = selectors.size ();
1074
+ outer: // Use label to continue loop
1075
+ while (--i != std::string::npos) {
1075
1076
1076
- for (size_t i = selectors.size () - 1 ; i != std::string::npos; i--) {
1077
1077
const ComplexSelectorObj& complex1 = selectors[i];
1078
1078
// Check if selector in known in existing "originals"
1079
1079
// For custom behavior dart-sass had `isOriginal(complex1)`
@@ -1083,7 +1083,7 @@ namespace Sass {
1083
1083
for (size_t j = 0 ; j < numOriginals; j++) {
1084
1084
if (ObjEqualityFn (result[j], complex1)) {
1085
1085
rotateSlice (result, 0 , j + 1 );
1086
- goto redo ;
1086
+ goto outer ;
1087
1087
}
1088
1088
}
1089
1089
result.insert (result.begin (), complex1);
You can’t perform that action at this time.
0 commit comments