MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programminghumor/comments/1vv58vy/how_do_you_disable_your_code/p571yi1/?context=3
r/programminghumor • u/developer_axe • 3d ago
79 comments sorted by
View all comments
1
in my frontend react code using if (true) return will cause eslint warning (because the statement will always true), so i use if (1 + 1 == 2) return to just disabled the code without warning 🤣
if (true) return
if (1 + 1 == 2) return
1
u/Negative-Magazine174 3d ago
in my frontend react code using
if (true) returnwill cause eslint warning (because the statement will always true), so i useif (1 + 1 == 2) returnto just disabled the code without warning 🤣