Skip to content

Commit

Permalink
Silence the programatic critics. (#459)
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Kendall authored Jul 20, 2016
1 parent ccf441e commit 83af15a
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/adapters/aardvark.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ var AardvarkAdapter = function AardvarkAdapter() {
}

function _requestBids(bidReqs) {

let ref;
try {
var ref = window.top.location.host;
ref = window.top.location.host;
}
catch (err) {
var ref = "thor.rtk.io";
ref = "thor.rtk.io";

}
var ai = "";
Expand Down
1 change: 1 addition & 0 deletions src/adapters/nginad.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ var NginAdAdapter = function NginAdAdapter() {
var id = nginadBid.impid;

// try to fetch the bid request we sent NginAd
/*jshint -W083 */
var bidObj = $$PREBID_GLOBAL$$._bidsRequested.find(bidSet => bidSet.bidderCode === 'nginad').bids
.find(bid => bid.bidId === id);
if (!bidObj) {
Expand Down
5 changes: 3 additions & 2 deletions src/adapters/sonobi.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,14 @@ var SonobiAdapter = function SonobiAdapter(){
case (!!o.params.placement_id && o.params.placement_id.length === 0):
utils.logError('Sonobi unable to bid: Empty placement_id for ' + o.placementCode);
break;
case (!!o.params.placement_id): // Morpeus style
case (!!o.params.placement_id): // Morpeus style
keyring[o.params.dom_id] = o.params.placement_id + (test ? '-test' : '') + '|' + sizes;
cb_map[o.params.dom_id] = o.placementCode;
break;
case (!!o.params.ad_unit && o.params.ad_unit.charAt(0) !== '/'):
// DFP docs do not necessarily require leading slash? - add it in if it's not there.
o.params.ad_unit = '/' + o.params.ad_unit;
/* falls through */
case (!!o.params.ad_unit): // Cypher style
keyring[o.params.ad_unit + '|' + o.params.dom_id] = sizes;
cb_map[o.params.ad_unit + '|' + o.params.dom_id] = o.placementCode;
Expand Down Expand Up @@ -88,4 +89,4 @@ var SonobiAdapter = function SonobiAdapter(){
return { callBids: _phone_in };
};

module.exports = SonobiAdapter;
module.exports = SonobiAdapter;
2 changes: 1 addition & 1 deletion src/adapters/sovrn.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ var SovrnAdapter = function SovrnAdapter() {
}

function addBlankBidResponses(impidsWithBidBack) {
var missing = pbjs._bidsRequested.find(bidSet => bidSet.bidderCode === 'sovrn').bids
var missing = $$PREBID_GLOBAL$$._bidsRequested.find(bidSet => bidSet.bidderCode === 'sovrn').bids
.filter(bid => impidsWithBidBack.indexOf(bid.bidId) < 0);

missing.forEach(function (bidRequest) {
Expand Down
2 changes: 1 addition & 1 deletion src/polyfill.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/** @module polyfill
Misc polyfills
*/

/*jshint -W121 */
if (!Array.prototype.find) {
Array.prototype.find = function(predicate) {
if (this === null) {
Expand Down

0 comments on commit 83af15a

Please sign in to comment.