File tree Expand file tree Collapse file tree 1 file changed +12
-7
lines changed
src/main/java/org/prebid/server/bidder/epsilon Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -260,12 +260,17 @@ private Bid updateBidWithId(Bid bid) {
260260 }
261261
262262 private static BidType getType (String impId , List <Imp > imps ) {
263- return imps .stream ()
264- .filter (imp -> impId .equals (imp .getId ()))
265- .findFirst ()
266- .map (imp -> imp .getAudio () != null ? BidType .audio
267- : (imp .getVideo () != null ? BidType .video
268- : BidType .banner ))
269- .orElse (BidType .banner );
263+ for (Imp imp : imps ) {
264+ if (imp .getId ().equals (impId )) {
265+ if (imp .getVideo () != null ) {
266+ return BidType .video ;
267+ } else if (imp .getAudio () != null ) {
268+ return BidType .audio ;
269+ } else {
270+ return BidType .banner ;
271+ }
272+ }
273+ }
274+ return BidType .banner ;
270275 }
271276}
You can’t perform that action at this time.
0 commit comments