mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-04 23:17:50 +00:00
Merge pull request #84763 from hwdef/fix-staticcheck6
pkg/controller: fix staticcheck warning
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user