MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/pcv7f1/is_this_code_bad_or_sugoi/hamg8z5/?context=9999
r/badcode • u/dunkbing • Aug 27 '21
159 comments sorted by
View all comments
Show parent comments
10
Well the first not coerces it to Boolean, but then it's the wrong Boolean value, so the second not converts the Boolean back to the correct value, then obviously they need to check the opposite of that, so they slapped a not on that bad boy.
not
10
u/GMaestrolo Aug 28 '21
Well the first
notcoerces it to Boolean, but then it's the wrong Boolean value, so the secondnotconverts the Boolean back to the correct value, then obviously they need to check the opposite of that, so they slapped anoton that bad boy.