loeffel-io / ls-lint

An extremely fast directory and filename linter - Bring some structure to your project filesystem
https://ls-lint.org
MIT License
1.74k stars 32 forks source link

refactor: use if-else instead of switch for bool #233

Open alexandear opened 3 months ago

alexandear commented 3 months ago

The PR refactors code from switch B { case true: ... case false: ...} to if B {...} else {...}, where B is simply boolean true or false.