From 7e4b78b8c4040b460fe8f8e59119db0db1b4d04b Mon Sep 17 00:00:00 2001 From: equt <17521736+equt@users.noreply.github.com> Date: Wed, 17 Nov 2021 09:55:53 +0800 Subject: [PATCH] fix: Removed duplicated `processCreateParams` in `ZodNumber` --- deno/lib/types.ts | 1 - src/types.ts | 1 - 2 files changed, 2 deletions(-) diff --git a/deno/lib/types.ts b/deno/lib/types.ts index a8385d5cf..a3b918884 100644 --- a/deno/lib/types.ts +++ b/deno/lib/types.ts @@ -700,7 +700,6 @@ export class ZodNumber extends ZodType { checks: [], typeName: ZodFirstPartyTypeKind.ZodNumber, ...processCreateParams(params), - ...processCreateParams(params), }); }; diff --git a/src/types.ts b/src/types.ts index 8c78e26c6..51648e735 100644 --- a/src/types.ts +++ b/src/types.ts @@ -700,7 +700,6 @@ export class ZodNumber extends ZodType { checks: [], typeName: ZodFirstPartyTypeKind.ZodNumber, ...processCreateParams(params), - ...processCreateParams(params), }); };