CI: enable bodyclose linter
This commit is contained in:
parent
b1a8fd1d03
commit
bd883caae1
3 changed files with 5 additions and 0 deletions
|
@ -252,6 +252,7 @@ func newBackend(ctx context.Context, cfg Config, lim limiter.Limiter) (*Backend,
|
|||
return nil, fmt.Errorf("error talking HTTP to rclone: %w", err)
|
||||
}
|
||||
|
||||
_ = res.Body.Close()
|
||||
debug.Log("HTTP status %q returned, moving instance to background", res.Status)
|
||||
err = bg()
|
||||
if err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue