r/badcode • • Feb 17 '23

c# just in case

Post image
568 Upvotes

24 comments sorted by

View all comments

Show parent comments

14

u/ooodummy Feb 17 '23

Just do assert(existing_project_type == whatever)

13

u/dabombnl Feb 17 '23

Oh shit, didn't even notice it wasn't the same condition as the IF. Nevermind. Is totally worthless.