Skip to content

Commit

Permalink
Updates to Remove Unused Vars (#9)
Browse files Browse the repository at this point in the history
* remove unused vars
  • Loading branch information
GLStephen authored Nov 30, 2020
1 parent 9855a62 commit 17a1bdb
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions modules/pubwiseBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -503,19 +503,10 @@ function _parseSlotParam(paramName, paramValue) {
function _parseAdSlot(bid) {
_logInfo('parseAdSlot bid', bid)
bid.params.adUnit = '';
bid.params.adUnitIndex = '0';
bid.params.width = 0;
bid.params.height = 0;
bid.params.adSlot = _cleanSlotName(bid.params.adSlot);

var slot = bid.params.adSlot;
var splits = slot.split(':');

slot = splits[0];
if (splits.length == 2) {
bid.params.adUnitIndex = splits[1];
}

if (bid.hasOwnProperty('mediaTypes')) {
if (bid.mediaTypes.hasOwnProperty(BANNER) &&
bid.mediaTypes.banner.hasOwnProperty('sizes')) { // if its a banner, has mediaTypes and sizes
Expand Down

0 comments on commit 17a1bdb

Please sign in to comment.