Skip to content

Commit

Permalink
CLL-303: Fix typo SAVE/SAFE
Browse files Browse the repository at this point in the history
  • Loading branch information
signatenkov committed Jan 16, 2025
1 parent c38520e commit e23d033
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/model/data-validators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ function checkBarItem<HorzScaleItem>(

assert(
isSafeValue(barItem[key]),
`${type} series item data value of ${key} must be between ${MIN_SAVE_VALUE.toPrecision(16)} and ${MAX_SAVE_VALUE.toPrecision(16)}, got=${typeof barItem[key]}, value=${
`${type} series item data value of ${key} must be between ${MIN_SAFE_VALUE.toPrecision(16)} and ${MAX_SAFE_VALUE.toPrecision(16)}, got=${typeof barItem[key]}, value=${
barItem[key]
}`
);
Expand All @@ -101,7 +101,7 @@ function checkLineItem<HorzScaleItem>(

assert(
isSafeValue(lineItem.value),
`${type} series item data value must be between ${MIN_SAVE_VALUE.toPrecision(16)} and ${MAX_SAVE_VALUE.toPrecision(16)}, got=${typeof lineItem.value}, value=${
`${type} series item data value must be between ${MIN_SAFE_VALUE.toPrecision(16)} and ${MAX_SAFE_VALUE.toPrecision(16)}, got=${typeof lineItem.value}, value=${
lineItem.value
}`
);
Expand All @@ -119,5 +119,5 @@ const MIN_SAFE_VALUE = Number.MIN_SAFE_INTEGER / 100;
const MAX_SAFE_VALUE = Number.MAX_SAFE_INTEGER / 100;

function isSafeValue(value: number): boolean {
return value >= MIN_SAVE_VALUE && value <= MAX_SAVE_VALUE;
return value >= MIN_SAFE_VALUE && value <= MAX_SAFE_VALUE;
}

0 comments on commit e23d033

Please sign in to comment.