refactor: remove method chaining for consistency

This commit is contained in:
jamesgeorge007
2024-05-20 13:20:59 +05:30
parent fc9f933905
commit 263f8b3588

View File

@@ -400,7 +400,7 @@ const HoppTestResultSchema = z
(x) => "secret" in x && !x.secret (x) => "secret" in x && !x.secret
).and( ).and(
z.object({ z.object({
previousValue: z.string().optional(), previousValue: z.optional(z.string()),
}) })
) )
), ),
@@ -415,7 +415,7 @@ const HoppTestResultSchema = z
(x) => "secret" in x && !x.secret (x) => "secret" in x && !x.secret
).and( ).and(
z.object({ z.object({
previousValue: z.string().optional(), previousValue: z.optional(z.string()),
}) })
) )
), ),