mirror of
https://github.com/coredns/coredns.git
synced 2025-10-29 01:04:15 -04:00
Golint (#386)
Lint and vet the curret code add docs about adding a git post-commit hook that performs these actions after each commit.
This commit is contained in:
@@ -83,12 +83,12 @@ func serviceListFunc(c *kubernetes.Clientset, ns string, s *labels.Selector) fun
|
||||
if s != nil {
|
||||
opts.LabelSelector = *s
|
||||
}
|
||||
list_v1, err := c.Core().Services(ns).List(opts)
|
||||
listV1, err := c.Core().Services(ns).List(opts)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
var list_api api.ServiceList
|
||||
err = v1.Convert_v1_ServiceList_To_api_ServiceList(list_v1, &list_api, nil)
|
||||
var listAPI api.ServiceList
|
||||
err = v1.Convert_v1_ServiceList_To_api_ServiceList(listV1, &listAPI, nil)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -110,12 +110,12 @@ func namespaceListFunc(c *kubernetes.Clientset, s *labels.Selector) func(api.Lis
|
||||
if s != nil {
|
||||
opts.LabelSelector = *s
|
||||
}
|
||||
list_v1, err := c.Core().Namespaces().List(opts)
|
||||
listV1, err := c.Core().Namespaces().List(opts)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
var list_api api.NamespaceList
|
||||
err = v1.Convert_v1_NamespaceList_To_api_NamespaceList(list_v1, &list_api, nil)
|
||||
var listAPI api.NamespaceList
|
||||
err = v1.Convert_v1_NamespaceList_To_api_NamespaceList(listV1, &listAPI, nil)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user