3 ms·
I must be their target audience because as soon as they used the example with || it all started making sense. This would have been fine too but it would trigge
by MetaWhirledPeas 2y ago
I must be their target audience because as soon as they used the example with || it all started making sense.
This would have been fine too but it would trigger some people not to use {}
if (!validateUserInput(user)) throwError(err.userValidationFailed);
My preferred style might be closer to this.
if (!userInputIsValid(user)) throwError(err.userValidationFailed);