From 3141ccdaae4fdf6ed3986f155541975c6ba57747 Mon Sep 17 00:00:00 2001 From: Joachim Hill-Grannec Date: Thu, 23 Feb 2017 13:21:47 -0800 Subject: [PATCH] gofmt --- remote/bitbucketserver/internal/client.go | 4 ++-- remote/bitbucketserver/internal/types.go | 16 ++++++++-------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/remote/bitbucketserver/internal/client.go b/remote/bitbucketserver/internal/client.go index f652268c..9050a33f 100644 --- a/remote/bitbucketserver/internal/client.go +++ b/remote/bitbucketserver/internal/client.go @@ -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 diff --git a/remote/bitbucketserver/internal/types.go b/remote/bitbucketserver/internal/types.go index 43d7a136..ec74e3cb 100644 --- a/remote/bitbucketserver/internal/types.go +++ b/remote/bitbucketserver/internal/types.go @@ -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"` }