Skip to content

Commit

Permalink
Fix PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
readpeaktuomo committed Apr 16, 2024
1 parent 0298a58 commit e99096c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 40 deletions.
5 changes: 1 addition & 4 deletions adapters/readpeak/readpeak.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@ func (a *adapter) MakeRequests(request *openrtb2.BidRequest, requestInfo *adapte
var rpExt openrtb_ext.ImpExtReadpeak
var imps []openrtb2.Imp
for i := 0; i < len(requestCopy.Imp); i++ {
if requestCopy.Imp[i].Native == nil && requestCopy.Imp[i].Banner == nil {
continue
}
var impExt adapters.ExtImpBidder
if err := json.Unmarshal(requestCopy.Imp[i].Ext, &impExt); err != nil {
errors = append(errors, err)
Expand Down Expand Up @@ -101,7 +98,7 @@ func (a *adapter) MakeRequests(request *openrtb2.BidRequest, requestInfo *adapte
}

func (a *adapter) MakeBids(request *openrtb2.BidRequest, requestData *adapters.RequestData, responseData *adapters.ResponseData) (*adapters.BidderResponse, []error) {
if responseData.StatusCode == http.StatusNoContent {
if adapters.IsResponseStatusCodeNoContent(responseData) {
return nil, nil
}

Expand Down

This file was deleted.

0 comments on commit e99096c

Please sign in to comment.