Skip to content

Commit

Permalink
gofmt
Browse files Browse the repository at this point in the history
  • Loading branch information
josmo committed Feb 23, 2017
1 parent 82189c2 commit 3141ccd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions remote/bitbucketserver/internal/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,12 +132,12 @@ func (c *Client) FindFileForRepo(owner string, repo string, fileName string, ref
}

func (c *Client) CreateHook(owner string, name string, callBackLink string) error {
hookDetails , err := c.GetHookDetails(owner, name)
hookDetails, err := c.GetHookDetails(owner, name)
if err != nil {
return err
}
hooks := make([]string, 0)
if (hookDetails.Enabled) {
if hookDetails.Enabled {
hookSettings, err := c.GetHooks(owner, name)
if err != nil {
return err
Expand Down
16 changes: 8 additions & 8 deletions remote/bitbucketserver/internal/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,14 +172,14 @@ type RefChange struct {

type HookPluginDetails struct {
Details struct {
Key string `json:"key"`
Name string `json:"name"`
Type string `json:"type"`
Description string `json:"description"`
Version string `json:"version"`
ConfigFormKey string `json:"configFormKey"`
} `json:"details"`
Enabled bool `json:"enabled"`
Key string `json:"key"`
Name string `json:"name"`
Type string `json:"type"`
Description string `json:"description"`
Version string `json:"version"`
ConfigFormKey string `json:"configFormKey"`
} `json:"details"`
Enabled bool `json:"enabled"`
Configured bool `json:"configured"`
}

Expand Down

0 comments on commit 3141ccd

Please sign in to comment.