Skip to content

Commit

Permalink
fix detection unsafe integer (#1048)
Browse files Browse the repository at this point in the history
  • Loading branch information
PlutoyDev authored May 6, 2024
1 parent 76f1b10 commit 682d8bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/commands/hgetall.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function deserialize<TData extends Record<string, unknown>>(result: string[]): T
try {
// handle unsafe integer
const valueIsNumberAndNotSafeInteger =
!Number.isNaN(Number(value)) && !Number.isSafeInteger(value);
!Number.isNaN(Number(value)) && !Number.isSafeInteger(Number(value));
if (valueIsNumberAndNotSafeInteger) {
obj[key] = value;
} else {
Expand Down

0 comments on commit 682d8bc

Please sign in to comment.