r/ProgrammerHumor • • Mar 15 '22

static bool isCrazyMurderingRobot = false;

/img/2g1k34ok5kn81.jpg
4.9k Upvotes

257 comments sorted by

View all comments

1

u/SillAndDill Mar 20 '22

There IS a lint rule to prevent assignments in if-statements https://eslint.org/docs/rules/no-cond-assign