Skip to content

Commit

Permalink
Update beintoo.go
Browse files Browse the repository at this point in the history
  • Loading branch information
ddantuonobeintoo authored May 12, 2020
1 parent 0b2befa commit fb36e23
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions adapters/beintoo/beintoo.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,17 @@ type BeintooAdapter struct {
}

func (a *BeintooAdapter) MakeRequests(request *openrtb.BidRequest, reqInfo *adapters.ExtraRequestInfo) ([]*adapters.RequestData, []error) {
var errs []error
var errors []error

if len(request.Imp) == 0 {
return nil, []error{&errortypes.BadInput{
Message: fmt.Sprintf("No Imps in Bid Request"),
}}
}

if errs := preprocess(request); errs != nil && len(errs) > 0 {
return nil, append(errs, &errortypes.BadInput{
Message: fmt.Sprintf("Error in preprocess of Imp, err: %s", errs),
if errors := preprocess(request); errors != nil && len(errors) > 0 {
return nil, append(errors, &errortypes.BadInput{
Message: fmt.Sprintf("Error in preprocess of Imp, err: %s", errors),
})
}

Expand Down Expand Up @@ -60,7 +60,7 @@ func (a *BeintooAdapter) MakeRequests(request *openrtb.BidRequest, reqInfo *adap
Uri: a.endpoint,
Body: data,
Headers: headers,
}}, errs
}}, errors
}

func unpackImpExt(imp *openrtb.Imp) (*openrtb_ext.ExtImpBeintoo, error) {
Expand Down

0 comments on commit fb36e23

Please sign in to comment.