MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/siwf1k/oh_hey_its_more_of_my_code/hvc2txs
r/badcode • u/[deleted] • Feb 02 '22
95 comments sorted by
View all comments
Show parent comments
46
or just return input == 1;
return input == 1;
11 u/tony7797176 Feb 02 '22 Good point lol. I just wrote bad code lol 9 u/SoulArthurZ Feb 02 '22 you didn't write bad code, it could just be simplified to return input == 1 -3 u/theREALhun Feb 02 '22 Or return !!input
11
Good point lol. I just wrote bad code lol
9 u/SoulArthurZ Feb 02 '22 you didn't write bad code, it could just be simplified to return input == 1
9
you didn't write bad code, it could just be simplified to return input == 1
-3
Or return !!input
46
u/hareppas Feb 02 '22
or just
return input == 1;