The actual problem there is that developer two checked something in without thinking about it, reading it, or examining the diffs of the change.
If you had a coding convention of always using braces in if statements, you might be insulated from this particular symptom or instance of the problem, but you still have the underlying problem that people are doing things without thinking.