+**Review.** I ran a self-review before opening the PR. It flagged two duplications: `updateUser`'s lookup re-implementing `users.find(...)` instead of calling `getUserById`, and the `!name || !email` validation being copy-pasted between `POST` and `PUT`. I fixed the first — it was a free win, just calling an existing helper instead of restating its logic. I left the second as-is: it's a single line duplicated across two small handlers in a two-route file, and extracting a shared validator felt like abstraction the project doesn't need yet. The not-found and validation paths both behave as the tests expect (400 before 404, 404 for unknown ids, 200 with the updated user on success).
0 commit comments