Skip to content

Commit 552d8d2

Browse files
committed
fix(parse): Remove always-truthy condition
1 parent 65121fe commit 552d8d2

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/parse.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ function parseSelector(
254254

255255
stripWhitespace(0);
256256

257-
while (selector !== "") {
257+
for (;;) {
258258
const firstChar = selector.charCodeAt(selectorIndex);
259259

260260
if (isWhitespace(firstChar)) {
@@ -589,10 +589,6 @@ function parseSelector(
589589
}
590590
}
591591
}
592-
593-
addToken(subselects, tokens);
594-
595-
return selectorIndex;
596592
}
597593

598594
function addToken(subselects: Selector[][], tokens: Selector[]) {

0 commit comments

Comments
 (0)