Fix syntax error; improve formatting a bit

I caused the syntax error earlier when I fixed a different mistake, an else branch written as `else {} /* a body */ }`, with an extra closing }.