From 94ffd427ccbfbce9b71ba63437ba8ba2796c9ef0 Mon Sep 17 00:00:00 2001 From: Grant Linville Date: Thu, 5 Dec 2024 15:57:20 -0500 Subject: [PATCH] fix lint issue Signed-off-by: Grant Linville --- pkg/engine/daemon.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/engine/daemon.go b/pkg/engine/daemon.go index a6d2975a..31f96018 100644 --- a/pkg/engine/daemon.go +++ b/pkg/engine/daemon.go @@ -270,9 +270,8 @@ func (e *Engine) startDaemon(tool types.Tool) (string, error) { _ = resp.Body.Close() }() return url, nil - } else { - _ = resp.Body.Close() } + _ = resp.Body.Close() select { case <-killedCtx.Done(): return url, fmt.Errorf("daemon failed to start: %w", context.Cause(killedCtx))