Skip to content

Commit 38a0e0c

Browse files
committed
fix: remove unnecessary +Infinity
1 parent 8fe72af commit 38a0e0c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/parser/common/entityCollector.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,10 +149,10 @@ export abstract class EntityCollector {
149149
const token = this._allTokens[i];
150150
if (token.channel !== Token.HIDDEN_CHANNEL) {
151151
// If prev nonhidden token is ';', the current token does not belong to any statement.
152-
return token.text === ';' ? +Infinity : token.tokenIndex;
152+
return token.text === ';' ? Infinity : token.tokenIndex;
153153
}
154154
}
155-
return +Infinity;
155+
return Infinity;
156156
}
157157

158158
protected pushStmt(ctx: ParserRuleContext, type: StmtContextType) {

0 commit comments

Comments
 (0)