Merge pull request #84763 from hwdef/fix-staticcheck6

pkg/controller: fix staticcheck warning
This commit is contained in:
Kubernetes Prow Robot
2019-11-07 09:05:17 -08:00
committed by GitHub
7 changed files with 6 additions and 22 deletions

View File

@@ -69,8 +69,7 @@ func (s endpointSet) Has(item *discovery.Endpoint) bool {
// Returns an endpoint matching the hash if contained in the set.
func (s endpointSet) Get(item *discovery.Endpoint) *discovery.Endpoint {
got, _ := s[hashEndpoint(item)]
return got
return s[hashEndpoint(item)]
}
// UnsortedList returns the slice with contents in random order.