Closed atxr closed 1 year ago
@amtoine
The function res.status
or res.sendStatus
can be used only once in a route. It basically sets the response headers.
Here, without this return
, this function might set the headers to 404
once and then still execute the remaining code, which will set the headers again at the end.
So this return allows to quit the function when no author
is provided.
again, waiting a bit for @gbrivady :yum: @atxr, if you feel time has passed enough, just merge this :wink:
Shouldn't we wait for #66 before merging this one?