Skip to content

Commit

Permalink
named return vals
Browse files Browse the repository at this point in the history
Signed-off-by: Zach Aller <[email protected]>
  • Loading branch information
zachaller committed Jun 14, 2024
1 parent 0304af0 commit f4be74b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/scms/fake/pullrequest.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ func NewFakePullRequestProvider() *PullRequest {
return &PullRequest{}
}

func (pr *PullRequest) Create(ctx context.Context, title, head, base, description string, pullRequest *v1alpha1.PullRequest) (string, error) {
func (pr *PullRequest) Create(ctx context.Context, title, head, base, description string, pullRequest *v1alpha1.PullRequest) (id string, err error) {
pullRequest.Spec.Title = title
pullRequest.Spec.SourceBranch = head
pullRequest.Spec.TargetBranch = base
pullRequest.Spec.Description = description
err := pr.savePointer(ctx, pullRequest)
err = pr.savePointer(ctx, pullRequest)
if err != nil {
return "", err
}
Expand Down

0 comments on commit f4be74b

Please sign in to comment.