chore: fix lint errors (#2520)

This commit is contained in:
Kevin Wan
2022-10-17 06:30:58 +08:00
committed by GitHub
parent d4c9fd2aff
commit 05a5de7c6d
27 changed files with 117 additions and 148 deletions

View File

@@ -115,7 +115,7 @@ func (h *EventHandler) Update(endpoints *v1.Endpoints) {
}
func (h *EventHandler) notify() {
var targets []string
targets := make([]string, 0, len(h.endpoints))
for k := range h.endpoints {
targets = append(targets, k)