From 4a12656ff472afbeeed7d1e3bd40dcc55ebb6df5 Mon Sep 17 00:00:00 2001 From: Sophia Willows <20146550+sophiabits@users.noreply.github.com> Date: Thu, 7 Apr 2022 23:13:43 +1200 Subject: [PATCH] Remove hanging string expressions (#1073) --- deno/lib/types.ts | 2 -- src/types.ts | 2 -- 2 files changed, 4 deletions(-) diff --git a/deno/lib/types.ts b/deno/lib/types.ts index c2bbbc2e1..4a0c4f59e 100644 --- a/deno/lib/types.ts +++ b/deno/lib/types.ts @@ -449,8 +449,6 @@ export abstract class ZodType< } optional(): ZodOptional { - (""); - ("asdf"); return ZodOptional.create(this) as any; } nullable(): ZodNullable { diff --git a/src/types.ts b/src/types.ts index d1b902345..3e9cf6ec0 100644 --- a/src/types.ts +++ b/src/types.ts @@ -405,8 +405,6 @@ export abstract class ZodType< } optional(): ZodOptional { - (""); - ("asdf"); return ZodOptional.create(this) as any; } nullable(): ZodNullable {