Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
shijl0925 committed Sep 7, 2024
1 parent d75032b commit dae4c1a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ func RemoveMagicPrefixLine(body []byte) []byte {
}

type ErrorResponse struct {
Body []byte
Response *http.Response
Message string
}
Expand All @@ -58,7 +57,6 @@ func CheckResponse(r *http.Response) error {
errorResponse := &ErrorResponse{Response: r}
data, err := io.ReadAll(r.Body)
if err == nil && data != nil {
errorResponse.Body = data
errorResponse.Message = string(data)
}

Expand Down

0 comments on commit dae4c1a

Please sign in to comment.