Skip to content

Commit

Permalink
Nitpick
Browse files Browse the repository at this point in the history
  • Loading branch information
AvinashKapre committed Nov 6, 2023
1 parent d0d71a0 commit 4b67612
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions modules/pubmatic/openwrap/beforevalidationhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 4b67612

Please sign in to comment.