r/badcode • • Feb 02 '22

c# Oh hey, its more of my code.

Post image
902 Upvotes

95 comments sorted by

View all comments

Show parent comments

46

u/hareppas Feb 02 '22

or just 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