DEV Community

Discussion on: Code Tip: Avoid unnecessary else statements

Collapse
georgehanson profile image
George Hanson Author

Like anything it all depends. There are cases when it is useful and others where it is not. In a simple case like this, I think it reduces visual debt. But it's all up to the individual developer.