DEV Community

Discussion on: Code Smell 24 - Boolean Coercions

Collapse
yoursunny profile image
Junxiao Shi

Depending on whether you want true or false. I usually test for error condition and return early.