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

@@ -325,7 +325,6 @@ func (sm *ServiceMap) apply(changes *ServiceChangeTracker, UDPStaleClusterIP set
// clear changes after applying them to ServiceMap.
changes.items = make(map[types.NamespacedName]*serviceChange)
metrics.ServiceChangesPending.Set(0)
return
}
// merge adds other ServiceMap's elements to current ServiceMap.