From 4b9a76570de31f2a8d2762430fc50d6b14737eca Mon Sep 17 00:00:00 2001 From: Joachim Hill-Grannec Date: Sat, 4 Feb 2017 20:42:17 -0800 Subject: [PATCH] Change to private (lowercase) --- remote/bitbucketserver/internal/client.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/remote/bitbucketserver/internal/client.go b/remote/bitbucketserver/internal/client.go index b498cc3f54..d536cb4eff 100644 --- a/remote/bitbucketserver/internal/client.go +++ b/remote/bitbucketserver/internal/client.go @@ -156,7 +156,7 @@ func (c *Client) DeleteHook(owner string, name string, link string) error { if err != nil { return err } - putHooks := Filter(hookSettingsToArray(hookSettings), func(item string) bool { + putHooks := filter(hookSettingsToArray(hookSettings), func(item string) bool { return !strings.Contains(item, link) }) @@ -251,7 +251,7 @@ func (c *Client) paginatedRepos(start int) ([]*Repo, error) { return repoResponse.Values, nil } -func Filter(vs []string, f func(string) bool) []string { +func filter(vs []string, f func(string) bool) []string { vsf := make([]string, 0) for _, v := range vs { if f(v) {