panwauu / tac-with-bug

Webapp for the popular boardgame TAC
https://tac-with-bug.herokuapp.com/
4 stars 4 forks source link

Refactor: remove variable shadowing #60

Open panwauu opened 2 years ago

panwauu commented 2 years ago

Describe the bug

Overriding or shadowing a variable declared in an outer scope can strongly impact the readability, and therefore the maintainability, of a piece of code. Further, it could lead maintainers to introduce bugs because they think they’re using one variable but are really using another.