Skip to content

Commit a12e29e

Browse files
committed
Fix lint errors
1 parent f3a41fc commit a12e29e

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/server/session.ts

+3-4
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ namespace ts.server {
382382
// correct results to all other projects.
383383

384384
const defaultProjectResults = perProjectResults.get(defaultProject);
385-
if (defaultProjectResults?.[0].references[0]?.isDefinition === undefined) {
385+
if (defaultProjectResults?.[0]?.references[0]?.isDefinition === undefined) {
386386
// Clear all isDefinition properties
387387
perProjectResults.forEach(projectResults => {
388388
if (projectResults) {
@@ -545,10 +545,9 @@ namespace ts.server {
545545
if (cancellationToken.isCancellationRequested()) break onCancellation;
546546

547547
let skipCount = 0;
548-
for (; skipCount < queue.length && resultsMap.has(queue[skipCount].project); skipCount++) {
549-
}
548+
for (; skipCount < queue.length && resultsMap.has(queue[skipCount].project); skipCount++);
550549

551-
if (skipCount == queue.length) {
550+
if (skipCount === queue.length) {
552551
queue.length = 0;
553552
break;
554553
}

0 commit comments

Comments
 (0)