this post was submitted on 14 Aug 2025
119 points (96.9% liked)

Programmer Humor

38282 readers
121 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 6 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] meekah@lemmy.world 2 points 3 weeks ago* (last edited 3 weeks ago)

Aren't the first two if branches completely useless? The variable was just defined without a value, so it should always be null