From a1f3038ec5446f835e62666d7283ea12126ee4fe Mon Sep 17 00:00:00 2001 From: Patrick McCann Date: Fri, 19 Nov 2021 14:08:31 -0500 Subject: [PATCH] gumgum & adagio Bid Adapters: remove extra defensive code to solve lgtm alert (#7737) * Update gumgumBidAdapter.js * Update adagioBidAdapter.js --- modules/adagioBidAdapter.js | 2 +- modules/gumgumBidAdapter.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/adagioBidAdapter.js b/modules/adagioBidAdapter.js index 264cf5f9fcb..b000772f214 100644 --- a/modules/adagioBidAdapter.js +++ b/modules/adagioBidAdapter.js @@ -308,7 +308,7 @@ function getElementFromTopWindow(element, currentWindow) { function autoDetectAdUnitElementIdFromGpt(adUnitCode) { const autoDetectedAdUnit = getGptSlotInfoForAdUnitCode(adUnitCode); - if (autoDetectedAdUnit && autoDetectedAdUnit.divId) { + if (autoDetectedAdUnit.divId) { return autoDetectedAdUnit.divId; } }; diff --git a/modules/gumgumBidAdapter.js b/modules/gumgumBidAdapter.js index d22fb1d7bdc..697fd8c6103 100644 --- a/modules/gumgumBidAdapter.js +++ b/modules/gumgumBidAdapter.js @@ -296,8 +296,8 @@ function buildRequests(validBidRequests, bidderRequest) { let gpid = ''; const date = new Date(); - const lt = date && date.getTime(); - const to = date && date.getTimezoneOffset(); + const lt = date.getTime(); + const to = date.getTimezoneOffset(); if (to) { lt && (data.lt = lt); data.to = to;