mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-04 23:17:50 +00:00
refactor(*): fix comparison to bool constant, return redundant
This commit is contained in:
@@ -189,7 +189,7 @@ func (proxier *Proxier) cleanupStaleStickySessions() {
|
||||
},
|
||||
Port: name.Port,
|
||||
}
|
||||
if servicePortNameMap[servicePortName] == false {
|
||||
if !servicePortNameMap[servicePortName] {
|
||||
// ensure cleanup sticky sessions only gets called once per serviceportname
|
||||
servicePortNameMap[servicePortName] = true
|
||||
proxier.loadBalancer.CleanupStaleStickySessions(servicePortName)
|
||||
|
||||
Reference in New Issue
Block a user