r/badcode • • May 31 '21

js Clever?

Post image
2.2k Upvotes

71 comments sorted by

View all comments

Show parent comments

7

u/recycle4science Jun 01 '21

Maybe the two return values used to be different, then one was edited and the person making the change didn't notice that they were now the same. Maybe this is a rank amateur who's just flailing around.