Remove unnecessary nil error in NewPullRequest.

This commit is contained in:
Kristijan Husak 2018-10-15 11:00:19 +02:00
parent df0e3e52fe
commit c69fce2e9d
3 changed files with 6 additions and 5 deletions

View file

@ -44,11 +44,11 @@ func getServices() []*Service {
}
// NewPullRequest creates new instance of PullRequest
func NewPullRequest(gitCommand *GitCommand) (*PullRequest, error) {
func NewPullRequest(gitCommand *GitCommand) *PullRequest {
return &PullRequest{
GitServices: getServices(),
GitCommand: gitCommand,
}, nil
}
}
// Create opens link to new pull request in browser