refactor(*): fix comparison to bool constant, return redundant

This commit is contained in:
lsytj0413
2019-10-28 16:41:08 +08:00
parent 7d13dfe3c3
commit 948a578179
5 changed files with 6 additions and 10 deletions

View File

@@ -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)