Skip to content

Commit

Permalink
Update github.go
Browse files Browse the repository at this point in the history
Signed-off-by: Rob Bos <rajbos@users.noreply.github.com>
  • Loading branch information
rajbos committed Jul 10, 2023
1 parent 33bb591 commit db3b971
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions github/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit db3b971

Please sign in to comment.