Skip to content

Commit 65561a8

Browse files
author
Ben Lichtman
committed
fix assertion condition
1 parent fcdd5bd commit 65561a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/classifier.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ namespace ts {
500500

501501
function pushClassification(start: number, end: number, type: ClassificationType): void {
502502
const length = end - start;
503-
Debug.assert(length >= 0, `Classification had non-positive length of ${length}`);
503+
Debug.assert(length > 0, `Classification had non-positive length of ${length}`);
504504
spans.push(start);
505505
spans.push(length);
506506
spans.push(type);

0 commit comments

Comments
 (0)