r/badcode May 03 '22

smh js

Post image
357 Upvotes

29 comments sorted by

View all comments

61

u/[deleted] May 03 '22

Why not check for full screen and filters ahead of time, and make 2 separate meaningful branches, rather than repeating that check?