Skip to content

Commit

Permalink
fix(github): url in latest release doubled /repos
Browse files Browse the repository at this point in the history
  • Loading branch information
fallion committed Nov 20, 2019
1 parent e42b8e0 commit 677011d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/github/latest_release.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ var json = jsoniter.ConfigCompatibleWithStandardLibrary

// LatestRelease calls https://developer.github.com/v3/repos/releases/#get-the-latest-release and returns a Release struct
func (g *Github) LatestRelease() (*release.Release, error) {
url := fmt.Sprintf("%v/repos/%v/%v/releases/latest", g.APIURL, g.owner, g.repo)
url := fmt.Sprintf("%v/%v/%v/releases/latest", g.APIURL, g.owner, g.repo)
response, err := g.client.Get(url)

if err != nil {
Expand Down

0 comments on commit 677011d

Please sign in to comment.