Fix braces on if statement 

We don't need a block here, it's fine with a single statement. There's plenty more coding style issues, but I hate fixing them. .