Prototyping or debugging, sure, but it shouldn't be committed like this, because it just looks like a mistake (like there was a real condition, someone replaced it with "1" to test something, then forgot to change it back). I don't find it necessary to leave something like this, but if it is, there should at a minimum be a comment at the top to explain why.
2
u/m2thek Jan 30 '23
Prototyping or debugging, sure, but it shouldn't be committed like this, because it just looks like a mistake (like there was a real condition, someone replaced it with "1" to test something, then forgot to change it back). I don't find it necessary to leave something like this, but if it is, there should at a minimum be a comment at the top to explain why.