Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: move verb export check to before req body validation (#2995)
# Summary This smol PR includes a micro optimization by ensuring that a verb is callable (a.k.a exported OR a call within the same module) _before_ validating the request body. # Rationale This change is not necessary by any means. Just something that crossed my mindwhile looking at controller logic with @wesbillman. # Changes * moves `!verb.IsExported` check to before validating request body * use the current caller to see if the call is intra-module instead of looping over all callers. > [!NOTE] > there may have been a reason why all callers are being looped over instead of checking the current caller, but i couldn't think of a good one. if someone knows definitely let me know!
- Loading branch information