DEV Community

loading...

Discussion on: Writing Clean Code

Collapse
gonedark profile image
Jason McCreary Author

You're right. I corrected the initial examples.

As far as the null check, it is indeed missing. But to your point, adding it would alter the existing behavior. I have left it off for simplicity.