ezolenko / rollup-plugin-typescript2

Rollup plugin for typescript with compiler errors.
MIT License
822 stars 71 forks source link

refactor: invert some conditionals for better readability #335

Closed agilgur5 closed 2 years ago

agilgur5 commented 2 years ago

Summary

Small refactor to invert some conditionals/if statements for better readability

Details

Review Notes

agilgur5 commented 2 years ago

I was looking through some old tabs and saw that CodeClimate actually defines a term for this kind of complexity. "Cognitive Complexity" includes complexity due to nesting.

Great to have a term for what I was describing moving forward!