diff --git a/internal/ghpr/ghpr.go b/internal/ghpr/ghpr.go index 708ade4..7a9a249 100644 --- a/internal/ghpr/ghpr.go +++ b/internal/ghpr/ghpr.go @@ -209,7 +209,7 @@ func NewPullRequestFromID(ctx context.Context, client *ghapi.GithubClient, ghOrg ) rebase.Stdout = log.G(ctx).WriterLevel(logrus.ErrorLevel) rebase.Stderr = log.G(ctx).WriterLevel(logrus.ErrorLevel) - if rebase.Run(); err != nil { + if err := rebase.Run(); err != nil { return nil, fmt.Errorf("could not rebase: %w", err) }