From 4b6761282bd74254f5aed27234eb4255748bbbf4 Mon Sep 17 00:00:00 2001 From: Avinash Kapre Date: Mon, 6 Nov 2023 10:56:33 +0530 Subject: [PATCH] Nitpick --- modules/pubmatic/openwrap/beforevalidationhook.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/modules/pubmatic/openwrap/beforevalidationhook.go b/modules/pubmatic/openwrap/beforevalidationhook.go index aff900b0a4f..dfa28239d3a 100644 --- a/modules/pubmatic/openwrap/beforevalidationhook.go +++ b/modules/pubmatic/openwrap/beforevalidationhook.go @@ -26,7 +26,9 @@ func (m OpenWrap) handleBeforeValidationHook( moduleCtx hookstage.ModuleInvocationContext, payload hookstage.BeforeValidationRequestPayload, ) (hookstage.HookResult[hookstage.BeforeValidationRequestPayload], error) { - result := hookstage.HookResult[hookstage.BeforeValidationRequestPayload]{Reject: true} + result := hookstage.HookResult[hookstage.BeforeValidationRequestPayload]{ + Reject: true, + } if len(moduleCtx.ModuleContext) == 0 { result.DebugMessages = append(result.DebugMessages, "error: module-ctx not found in handleBeforeValidationHook()") return result, nil @@ -803,10 +805,6 @@ func (m OpenWrap) setTimeout(rCtx models.RequestCtx) int64 { // if ssauction flag is not set and platform is dislay, then by default send all bids // if ssauction flag is not set and platform is in-app, then check if profile setting sendAllBids is set to 1 func isSendAllBids(rctx models.RequestCtx) bool { - if rctx.SSAuction == -1 && rctx.Platform == models.PLATFORM_DISPLAY { //Need to check ssAuction is always=-1 - return true - } - //if ssauction is set to 0 in the request if rctx.SSAuction == 0 { return true