zod 3.25.58 → 3.25.59

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -72,10 +72,8 @@ exports.$ZodType = core.$constructor("$ZodType", (inst, def) => {
72
72
  if (!shouldRun)
73
73
  continue;
74
74
  }
75
- else {
76
- if (isAborted) {
77
- continue;
78
- }
75
+ else if (isAborted) {
76
+ continue;
79
77
  }
80
78
  const currLen = payload.issues.length;
81
79
  const _ = ch._zod.check(payload);
@@ -832,13 +830,11 @@ exports.$ZodObject = core.$constructor("$ZodObject", (inst, def) => {
832
830
  if (r instanceof Promise) {
833
831
  proms.push(r.then((r) => isOptional ? handleOptionalObjectResult(r, payload, key, input) : handleObjectResult(r, payload, key)));
834
832
  }
833
+ else if (isOptional) {
834
+ handleOptionalObjectResult(r, payload, key, input);
835
+ }
835
836
  else {
836
- if (isOptional) {
837
- handleOptionalObjectResult(r, payload, key, input);
838
- }
839
- else {
840
- handleObjectResult(r, payload, key);
841
- }
837
+ handleObjectResult(r, payload, key);
842
838
  }
843
839
  }
844
840
  }