Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit 05a47a2

Browse files
committed
style: lint
1 parent abcfef0 commit 05a47a2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/validations/primitives/number.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export const number: SyncValidation = {
4747
return
4848
}
4949

50-
if (castedValue === Infinity || castedValue === -Infinity) {
50+
if (castedValue === Number.POSITIVE_INFINITY || castedValue === Number.NEGATIVE_INFINITY) {
5151
errorReporter.report(pointer, RULE_NAME, DEFAULT_MESSAGE, arrayExpressionPointer)
5252
return
5353
}

0 commit comments

Comments
 (0)