Skip to content

Commit

Permalink
orbidder adapter: removed unnecessary check for empty Imp slice
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasmaurer0210 committed Nov 25, 2021
1 parent 794f81d commit 000fef8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 26 deletions.
7 changes: 0 additions & 7 deletions adapters/orbidder/orbidder.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,6 @@ func getValidImpressions(request *openrtb2.BidRequest, reqInfo *adapters.ExtraRe
var errs []error
var validImps []openrtb2.Imp

// check if imps exists, if not return error and do send request to orbidder.
if len(request.Imp) == 0 {
return nil, []error{&errortypes.BadInput{
Message: "No impressions in request",
}}
}

for _, imp := range request.Imp {
if err := preprocessBidFloorCurrency(&imp, reqInfo); err != nil {
errs = append(errs, err)
Expand Down

This file was deleted.

0 comments on commit 000fef8

Please sign in to comment.