Refacotring create pull request class

Don't use parentheses around the condition of an `if`.