mirror of
https://github.com/crunchy-labs/crunchy-cli.git
synced 2026-01-21 04:02:00 -06:00
add missing defer
This commit is contained in:
parent
aa3f8e1b34
commit
187a0c8817
1 changed files with 1 additions and 0 deletions
|
|
@ -244,6 +244,7 @@ func (c *Crunchyroll) request(endpoint string) (*http.Response, error) {
|
|||
|
||||
resp, err := c.Client.Do(req)
|
||||
if err == nil {
|
||||
defer resp.Body.Close()
|
||||
bodyAsBytes, _ := io.ReadAll(resp.Body)
|
||||
defer resp.Body.Close()
|
||||
if resp.StatusCode == http.StatusUnauthorized {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue