[minor] Remove the line break and add spaces after all `if` statements.