From db3b9715311a2b58849ca51ecfff119e3b83f07d Mon Sep 17 00:00:00 2001 From: Rob Bos Date: Mon, 10 Jul 2023 17:40:41 +0200 Subject: [PATCH] Update github.go Signed-off-by: Rob Bos --- github/github.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/github/github.go b/github/github.go index 464d020f..fbcbb873 100644 --- a/github/github.go +++ b/github/github.go @@ -84,11 +84,7 @@ func (c *Client) ParseFromURL(baseRepoURL, repoName string) (RepoInfo, error) { if err != nil { return ret, fmt.Errorf("parsing base repo URL: %w", err) } - - repoURL, err := baseURL.Parse(fmt.Sprintf("repos/%s", repoName)) - if err != nil { - return ret, fmt.Errorf("parsing repo endpoint: %w", err) - } + repoURL := baseURL.JoinPath(fmt.Sprintf("repos/%s", repoName)) log.Printf("getting repo info from URL: %s", repoURL.String()) //nolint:noctx