Skip to content

Commit

Permalink
fix/1011 first day path (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
MindHunter86 authored Aug 11, 2024
2 parents d8cd325 + 2ea26a0 commit 31d60f4
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions internal/utils/apiv1_response.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,9 @@ func AcquireApiResponse() *ApiResponse {
}

func ReleaseApiResponse(ar *ApiResponse) {
ar.Status = false
if ar.Error != nil {
ar.Error.Code, ar.Error.Message, ar.Error.Description = 0, "", ""
}
if ar.Data != nil {
ar.Data.Code = ""
*ar = ApiResponse{
Data: &ApiResponseData{},
Error: &ApiError{},
}
apiResponsePool.Put(ar)
}
Expand Down

0 comments on commit 31d60f4

Please sign in to comment.