Skip to content

Commit

Permalink
fix(core): switch statement loophole
Browse files Browse the repository at this point in the history
  • Loading branch information
minenwerfer committed Nov 22, 2024
1 parent 9e6ec98 commit 8b1171d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/collection/traverseDocument.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,7 @@ const autoCast = (value: unknown, ctx: Omit<PhaseContext, 'options'> & { options
: null
}
}

return value
break
}

case 'number': {
Expand All @@ -182,6 +181,7 @@ const autoCast = (value: unknown, ctx: Omit<PhaseContext, 'options'> & { options
return new Date(value)
}
}
break
}

case 'object': {
Expand Down

0 comments on commit 8b1171d

Please sign in to comment.