Commit 876650d6 authored by Guangwen Feng's avatar Guangwen Feng Committed by GitHub

Fix golint issue caused by typo (#4365)

Signed-off-by: default avatarGuangwen Feng <fenggw-fnst@cn.fujitsu.com>
parent 1085efaf
...@@ -47,7 +47,7 @@ type EndpointPort struct { ...@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment