Skip to content

Commit

Permalink
return err of resp.Body.Close()
Browse files Browse the repository at this point in the history
  • Loading branch information
vbauerster committed Jul 22, 2024
1 parent cc8e8f3 commit ae70a30
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions getparty.go
Original file line number Diff line number Diff line change
Expand Up @@ -596,8 +596,7 @@ func (cmd Cmd) follow(client *http.Client, rawURL string) (session *Session, err
Redirected: redirected,
}

resp.Body.Close()
return false, nil
return false, resp.Body.Close()
}
})
return session, err
Expand Down

0 comments on commit ae70a30

Please sign in to comment.