Return nil when err is nil

This commit is contained in:
Lucas Melin 2025-10-06 11:51:58 -04:00
parent 5368f409a7
commit b229402cab
No known key found for this signature in database

View file

@ -782,7 +782,7 @@ func PullRequestRevert(client *Client, repo ghrepo.Interface, params githubv4.Re
return nil, err
}
revertPR := &mutation.RevertPullRequest.RevertPullRequest
return revertPR, err
return revertPR, nil
}
func ConvertPullRequestToDraft(client *Client, repo ghrepo.Interface, pr *PullRequest) error {