Skip to content

Commit

Permalink
return nil instead of banner in error scenario
Browse files Browse the repository at this point in the history
  • Loading branch information
Gus Carreon committed Mar 25, 2021
1 parent 63ab024 commit 2ee39e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adapters/pubnative/pubnative.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ func convertBanner(banner *openrtb.Banner) (*openrtb.Banner, error) {

return &bannerCopy, nil
} else {
return banner, &errortypes.BadInput{
return nil, &errortypes.BadInput{
Message: "Size information missing for banner",
}
}
Expand Down

0 comments on commit 2ee39e3

Please sign in to comment.