From 412ef6f7ae0ea396c449c8dafa871e9cce6c68dd Mon Sep 17 00:00:00 2001 From: Brad Rydzewski Date: Sat, 9 Aug 2014 16:55:51 -0700 Subject: [PATCH] fixed go vet issue w/ missing fmt.Sprintf values --- client/repos.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/repos.go b/client/repos.go index 19569c99..b40914a2 100644 --- a/client/repos.go +++ b/client/repos.go @@ -11,8 +11,8 @@ type RepoService struct { } // GET /v1/repos/{host}/{owner}/{name} -func (s *RepoService) Get() (*model.Repo, error) { - var path = fmt.Sprintf("/v1/repos/%s/%s/%s") +func (s *RepoService) Get(host, owner, name string) (*model.Repo, error) { + var path = fmt.Sprintf("/v1/repos/%s/%s/%s", host, owner, name) var repo = model.Repo{} var err = s.run("PUT", path, nil, &repo) return &repo, err @@ -20,7 +20,7 @@ func (s *RepoService) Get() (*model.Repo, error) { // PUT /v1/repos/{host}/{owner}/{name} func (s *RepoService) Update(repo *model.Repo) (*model.Repo, error) { - var path = fmt.Sprintf("/v1/repos/%s/%s/%s") + var path = fmt.Sprintf("/v1/repos/%s/%s/%s", repo.Host, repo.Owner, repo.Name) var result = model.Repo{} var err = s.run("PUT", path, &repo, &result) return &result, err