8000 rm `console.dir` from `$ZodDiscriminatedUnion` (#4593) · colinhacks/zod@a127639 · GitHub
[go: up one dir, main page]

Skip to content

Commit a127639

Browse files
authored
rm console.dir from $ZodDiscriminatedUnion (#4593)
1 parent 7bfc8af commit a127639

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

packages/zod/src/v4/core/schemas.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1976,7 +1976,6 @@ export const $ZodDiscriminatedUnion: core.$constructor<$ZodDiscriminatedUnion> =
19761976
const propValues: util.PropValues = {};
19771977
for (const option of def.options) {
19781978
const pv = option._zod.propValues;
1979-
console.dir(pv, { depth: null });
19801979
if (!pv || Object.keys(pv).length === 0)
19811980
throw new Error(`Invalid discriminated union option at index "${def.options.indexOf(option)}"`);
19821981
for (const [k, v] of Object.entries(pv!)) {

0 commit comments

Comments
 (0)
0