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:
parent
f9a8fd4a0a
commit
4b9a76570d
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user