Fix golint issue caused by typo (#4365)

Signed-off-by: Guangwen Feng <fenggw-fnst@cn.fujitsu.com>
This commit is contained in:
Guangwen Feng
2021-01-06 21:34:32 +08:00
committed by GitHub
parent 1085efaf31
commit 876650d638

View File

@@ -47,7 +47,7 @@ type EndpointPort struct {
// EndpointsKey returns a string using for the index. // EndpointsKey returns a string using for the index.
func EndpointsKey(name, namespace string) string { return name + "." + namespace } 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) { func ToEndpoints(obj meta.Object) (meta.Object, error) {
end, ok := obj.(*api.Endpoints) end, ok := obj.(*api.Endpoints)
if !ok { if !ok {