From 38fc438087154fac35f67805563a77e080e73d87 Mon Sep 17 00:00:00 2001 From: Christian Groschupp Date: Tue, 22 Jun 2021 07:37:37 +0200 Subject: [PATCH] lint code --- commits.go | 4 +--- teams.go | 5 ++--- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/commits.go b/commits.go index 5cf585a..956a3b8 100644 --- a/commits.go +++ b/commits.go @@ -1,8 +1,8 @@ package bitbucket import ( - "net/url" "encoding/json" + "net/url" ) type Commits struct { @@ -50,7 +50,6 @@ func (cm *Commits) RemoveApprove(cmo *CommitsOptions) (interface{}, error) { return cm.c.execute("DELETE", urlStr, "") } - func (cm *Commits) CreateCommitStatus(cmo *CommitsOptions, cso *CommitStatusOptions) (interface{}, error) { urlStr := cm.c.requestUrl("/repositories/%s/%s/commit/%s/statuses/build", cmo.Owner, cmo.RepoSlug, cmo.Revision) data, err := json.Marshal(cso) @@ -60,7 +59,6 @@ func (cm *Commits) CreateCommitStatus(cmo *CommitsOptions, cso *CommitStatusOpti return cm.c.execute("POST", urlStr, string(data)) } - func (cm *Commits) buildCommitsQuery(include, exclude string) string { p := url.Values{} diff --git a/teams.go b/teams.go index 793fa56..45c96b9 100644 --- a/teams.go +++ b/teams.go @@ -35,7 +35,6 @@ func (t *Teams) Repositories(teamname string) (interface{}, error) { } func (t *Teams) Projects(teamname string) (interface{}, error) { - urlStr := t.c.requestUrl("/teams/%s/projects/", teamname) - return t.c.execute("GET", urlStr, "") + urlStr := t.c.requestUrl("/teams/%s/projects/", teamname) + return t.c.execute("GET", urlStr, "") } -