[minor] Style: add a space before the `{` in the conditionals and format the code to use a 3 space indent.