diff --git a/pkg/vcs/github_client/client.go b/pkg/vcs/github_client/client.go index f8560149..6f20fa51 100644 --- a/pkg/vcs/github_client/client.go +++ b/pkg/vcs/github_client/client.go @@ -5,7 +5,6 @@ import ( "fmt" "io" "net/http" - "net/url" "regexp" "strconv" "strings" @@ -193,10 +192,6 @@ func (c *Client) buildRepoFromComment(context context.Context, comment *github.I owner := comment.GetIssue().GetRepository().GetOwner().GetName() repo := comment.GetIssue().GetRepository().GetName() prNumber := comment.GetIssue().GetNumber() - if err != nil { - log.Error().Msgf("failed to convert prNumber: %s", err) - return nilPr - } pr, ghStatus, err := c.googleClient.PullRequests.Get(context, owner, repo, prNumber) if err != nil || ghStatus.StatusCode < 200 || ghStatus.StatusCode >= 300 { log.Error().Msgf("failed to get pull request: %s", err)