Skip to content

Commit 94ffd42

Browse files
committed
fix lint issue
Signed-off-by: Grant Linville <[email protected]>
1 parent cd73f59 commit 94ffd42

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pkg/engine/daemon.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,9 +270,8 @@ func (e *Engine) startDaemon(tool types.Tool) (string, error) {
270270
_ = resp.Body.Close()
271271
}()
272272
return url, nil
273-
} else {
274-
_ = resp.Body.Close()
275273
}
274+
_ = resp.Body.Close()
276275
select {
277276
case <-killedCtx.Done():
278277
return url, fmt.Errorf("daemon failed to start: %w", context.Cause(killedCtx))

0 commit comments

Comments
 (0)