Skip to content

Commit 0798590

Browse files
committed
address a couple remaining eslint errors
1 parent 01ab588 commit 0798590

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/json.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -112,12 +112,7 @@ function cleanJsonText(text: string) {
112112
}
113113

114114
function scanString() {
115-
while (true) {
116-
if (index >= length) {
117-
// string ended unexpectedly
118-
break;
119-
}
120-
115+
while (index < length) {
121116
const code = next();
122117

123118
if (code === CharCode.doubleQuote) {
@@ -138,6 +133,7 @@ function cleanJsonText(text: string) {
138133
}
139134
}
140135

136+
// eslint-disable-next-line no-constant-condition
141137
while (true) {
142138
const code = next();
143139

0 commit comments

Comments
 (0)