Make recommended code style changes.

Making suggested code formatting changes as suggested by @ZogStriP

https://github.com/discourse/discourse/pull/2190