Skip to content

Commit 38fc438

Browse files
committed
lint code
1 parent c69ac0b commit 38fc438

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

commits.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package bitbucket
22

33
import (
4-
"net/url"
54
"encoding/json"
5+
"net/url"
66
)
77

88
type Commits struct {
@@ -50,7 +50,6 @@ func (cm *Commits) RemoveApprove(cmo *CommitsOptions) (interface{}, error) {
5050
return cm.c.execute("DELETE", urlStr, "")
5151
}
5252

53-
5453
func (cm *Commits) CreateCommitStatus(cmo *CommitsOptions, cso *CommitStatusOptions) (interface{}, error) {
5554
urlStr := cm.c.requestUrl("/repositories/%s/%s/commit/%s/statuses/build", cmo.Owner, cmo.RepoSlug, cmo.Revision)
5655
data, err := json.Marshal(cso)
@@ -60,7 +59,6 @@ func (cm *Commits) CreateCommitStatus(cmo *CommitsOptions, cso *CommitStatusOpti
6059
return cm.c.execute("POST", urlStr, string(data))
6160
}
6261

63-
6462
func (cm *Commits) buildCommitsQuery(include, exclude string) string {
6563

6664
p := url.Values{}

teams.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ func (t *Teams) Repositories(teamname string) (interface{}, error) {
3535
}
3636

3737
func (t *Teams) Projects(teamname string) (interface{}, error) {
38-
urlStr := t.c.requestUrl("/teams/%s/projects/", teamname)
39-
return t.c.execute("GET", urlStr, "")
38+
urlStr := t.c.requestUrl("/teams/%s/projects/", teamname)
39+
return t.c.execute("GET", urlStr, "")
4040
}
41-

0 commit comments

Comments
 (0)