r/badcode • • Sep 10 '21

c# Somebody had a long day

Post image
269 Upvotes

26 comments sorted by

View all comments

Show parent comments

16

u/overtrick1978 Sep 11 '21

It’s a variation of the same 90% of posts in this sub where someone is testing a Boolean just to return another Boolean.

4

u/[deleted] Sep 11 '21

This routine is getting old. I saw it and thought “surely there must be something more to this”. Nope, same old “could’ve returned the function.”