Skip to content

Commit

Permalink
close the body
Browse files Browse the repository at this point in the history
Signed-off-by: Grant Linville <[email protected]>
  • Loading branch information
g-linville committed Dec 5, 2024
1 parent a297bd0 commit cd73f59
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/engine/daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,8 @@ func (e *Engine) startDaemon(tool types.Tool) (string, error) {
_ = resp.Body.Close()
}()
return url, nil
} else {

Check failure on line 273 in pkg/engine/daemon.go

View workflow job for this annotation

GitHub Actions / test (ubuntu-22.04)

indent-error-flow: if block ends with a return statement, so drop this else and outdent its block (revive)
_ = resp.Body.Close()
}
select {
case <-killedCtx.Done():
Expand Down

0 comments on commit cd73f59

Please sign in to comment.