1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2024-11-30 08:06:52 +02:00

Change to private (lowercase)

This commit is contained in:
Joachim Hill-Grannec 2017-02-04 20:42:17 -08:00
parent f9a8fd4a0a
commit 4b9a76570d

View File

@ -156,7 +156,7 @@ func (c *Client) DeleteHook(owner string, name string, link string) error {
if err != nil { if err != nil {
return err return err
} }
putHooks := Filter(hookSettingsToArray(hookSettings), func(item string) bool { putHooks := filter(hookSettingsToArray(hookSettings), func(item string) bool {
return !strings.Contains(item, link) return !strings.Contains(item, link)
}) })
@ -251,7 +251,7 @@ func (c *Client) paginatedRepos(start int) ([]*Repo, error) {
return repoResponse.Values, nil 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) vsf := make([]string, 0)
for _, v := range vs { for _, v := range vs {
if f(v) { if f(v) {