Great tip! I've landed on a similar practice informed by eslint's no-case-declaration rule.
Typically I default to cases without blocks, and add them when that rule reminds me to.
That’s a nice approach too, as it also removes the “whoops I didn’t realize I did that” effect. Good to know, thanks!
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.