From 3b090ce4da67b833220f53d4a416e30fcb459b68 Mon Sep 17 00:00:00 2001 From: Oronno Mamun Date: Wed, 27 Nov 2024 11:54:26 -0500 Subject: [PATCH] IX: remove redundent filter and add nonNull check --- src/main/java/org/prebid/server/bidder/ix/IxBidder.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/prebid/server/bidder/ix/IxBidder.java b/src/main/java/org/prebid/server/bidder/ix/IxBidder.java index 8191a106c94..5fb26e698fd 100644 --- a/src/main/java/org/prebid/server/bidder/ix/IxBidder.java +++ b/src/main/java/org/prebid/server/bidder/ix/IxBidder.java @@ -410,11 +410,13 @@ private List extractFledge(IxBidResponse bidResponse) { return Optional.ofNullable(bidResponse) .map(IxBidResponse::getExt) .map(IxExtBidResponse::getProtectedAudienceAuctionConfigs) - .filter(CollectionUtils::isNotEmpty) .orElse(Collections.emptyList()) .stream() - .map(ixAuctionConfig -> FledgeAuctionConfig.builder().impId(ixAuctionConfig.getBidId()) - .config(ixAuctionConfig.getConfig()).build()) + .filter(Objects::nonNull) + .map(ixAuctionConfig -> FledgeAuctionConfig.builder() + .impId(ixAuctionConfig.getBidId()) + .config(ixAuctionConfig.getConfig()) + .build()) .toList(); } }