Skip to content

Commit

Permalink
preventing nil pointer when body closing
Browse files Browse the repository at this point in the history
  • Loading branch information
igorlombacx committed Oct 11, 2023
1 parent e7cb5e3 commit b3d39d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/wrappers/github-http.go
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ func get(client *http.Client, url string, target interface{}, queryParams map[st
}
case http.StatusConflict:
logger.PrintIfVerbose(fmt.Sprintf("Found empty repository in %s", req.URL))
return nil, nil
return resp, nil
default:
body, err := io.ReadAll(resp.Body)
if err != nil {
Expand Down

0 comments on commit b3d39d9

Please sign in to comment.