Skip to content

Commit

Permalink
Remove unnecessary else and commented out gdprEnforced conditionals
Browse files Browse the repository at this point in the history
  • Loading branch information
bsardo committed Sep 3, 2024
1 parent 54f2129 commit a65b59c
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions exchange/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,6 @@ func (rs *requestSplitter) cleanOpenRTBRequests(ctx context.Context,
PublisherID: auctionReq.LegacyLabels.PubID,
}
gdprPerms = rs.gdprPermsBuilder(auctionReq.TCF2Config, gdprRequestInfo)
} else {
gdprPerms = gdpr.AlwaysAllow{}
}

allowedBidderRequests = make([]BidderRequest, 0, len(allBidderRequests))
Expand Down Expand Up @@ -189,7 +187,6 @@ func (rs *requestSplitter) isBidderBlockedByPrivacy(r *openrtb_ext.RequestWrappe
}

// gdpr
// if gdprEnforced && !auctionPermissions.AllowBidRequest {
if !auctionPermissions.AllowBidRequest {
rs.me.RecordAdapterGDPRRequestBlocked(coreBidder)
return true
Expand All @@ -213,7 +210,6 @@ func (rs *requestSplitter) applyPrivacy(bidderRequest *BidderRequest, auctionReq
privacy.ScrubUserFPD(reqWrapper)
buyerUIDRemoved = true
} else {
// if gdprEnforced && !auctionPermissions.PassID {
if !auctionPermissions.PassID {
privacy.ScrubGdprID(reqWrapper)
buyerUIDRemoved = true
Expand All @@ -232,7 +228,6 @@ func (rs *requestSplitter) applyPrivacy(bidderRequest *BidderRequest, auctionReq
if !passGeoActivityAllowed {
privacy.ScrubGeoAndDeviceIP(reqWrapper, ipConf)
} else {
// if gdprEnforced && !auctionPermissions.PassGeo {
if !auctionPermissions.PassGeo {
privacy.ScrubGeoAndDeviceIP(reqWrapper, ipConf)
}
Expand Down

0 comments on commit a65b59c

Please sign in to comment.