Skip to content

Commit

Permalink
fix clean code and endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
przemkaczmarek committed Jan 17, 2025
1 parent a7139ad commit a02afe8
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/main/java/org/prebid/server/bidder/metax/MetaxBidder.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import com.iab.openrtb.response.BidResponse;
import com.iab.openrtb.response.SeatBid;
import org.apache.commons.collections4.CollectionUtils;
import org.apache.commons.lang3.StringUtils;
import org.prebid.server.bidder.Bidder;
import org.prebid.server.bidder.model.BidderBid;
import org.prebid.server.bidder.model.BidderCall;
Expand Down Expand Up @@ -107,10 +106,10 @@ private static Imp modifyImp(Imp imp) {
private String resolveEndpoint(ExtImpMetax extImpMetax) {
final String publisherIdAsString = Optional.ofNullable(extImpMetax.getPublisherId())
.map(Object::toString)
.orElse(StringUtils.EMPTY);
.orElse("0");
final String adUnitAsString = Optional.ofNullable(extImpMetax.getAdUnit())
.map(Object::toString)
.orElse(StringUtils.EMPTY);
.orElse("0");

return endpointUrl
.replace(PUBLISHER_ID_MACRO, publisherIdAsString)
Expand Down Expand Up @@ -143,7 +142,6 @@ private static List<BidderBid> extractBids(BidResponse bidResponse) {
.bidCurrency(bidResponse.getCur())
.videoInfo(videoInfo(bid))
.build())

.toList();
}

Expand Down

0 comments on commit a02afe8

Please sign in to comment.