mirror of
https://github.com/coredns/coredns.git
synced 2025-11-01 18:53:43 -04:00
Fix golint issue caused by typo (#4365)
Signed-off-by: Guangwen Feng <fenggw-fnst@cn.fujitsu.com>
This commit is contained in:
@@ -47,7 +47,7 @@ type EndpointPort struct {
|
||||
// EndpointsKey returns a string using for the index.
|
||||
func EndpointsKey(name, namespace string) string { return name + "." + namespace }
|
||||
|
||||
// toEndpoints converts an *api.Endpoints to a *Endpoints.
|
||||
// ToEndpoints converts an *api.Endpoints to a *Endpoints.
|
||||
func ToEndpoints(obj meta.Object) (meta.Object, error) {
|
||||
end, ok := obj.(*api.Endpoints)
|
||||
if !ok {
|
||||
|
||||
Reference in New Issue
Block a user