Ensure one-line ifs have braces when necessary