mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-23 07:07:09 -05:00
fix assertion condition
This commit is contained in:
@@ -500,7 +500,7 @@ namespace ts {
|
||||
|
||||
function pushClassification(start: number, end: number, type: ClassificationType): void {
|
||||
const length = end - start;
|
||||
Debug.assert(length >= 0, `Classification had non-positive length of ${length}`);
|
||||
Debug.assert(length > 0, `Classification had non-positive length of ${length}`);
|
||||
spans.push(start);
|
||||
spans.push(length);
|
||||
spans.push(type);
|
||||
|
||||
Reference in New Issue
Block a user