Skip to content

Commit 9d090f4

Browse files
fix comment
1 parent 698385f commit 9d090f4

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

src/main/java/org/prebid/server/bidder/epsilon/EpsilonBidder.java

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)