From 55057841b0a9f4768c75471734e85a8ff4eb8758 Mon Sep 17 00:00:00 2001 From: Tom Wieczorek Date: Thu, 14 Sep 2023 11:48:03 +0200 Subject: [PATCH] Remove unused error channel Probably a remnant from the past that was forgotten to remove. Signed-off-by: Tom Wieczorek --- pkg/autopilot/controller/readyprober.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/pkg/autopilot/controller/readyprober.go b/pkg/autopilot/controller/readyprober.go index 95dd5a8222bb..a4609c051b5b 100644 --- a/pkg/autopilot/controller/readyprober.go +++ b/pkg/autopilot/controller/readyprober.go @@ -75,9 +75,6 @@ func (p *readyProber) AddTargets(targets []apv1beta2.PlanCommandTargetStatus) { // inspection. This function blocks until *all* spawned goroutines have completed // or timed-out. func (p readyProber) Probe() error { - errorCh := make(chan error, len(p.targets)) - defer close(errorCh) - g := errgroup.Group{} for _, target := range p.targets {