Skip to content

Commit

Permalink
update lint errors in currency
Browse files Browse the repository at this point in the history
  • Loading branch information
snapwich committed Aug 8, 2017
1 parent bf5e92a commit d30b610
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/currency.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import bidmanager from 'src/bidmanager';

$$PREBID_GLOBAL$$.currency = setConfig;

const DEFAULT_CURRENCY_RATE_URL = "http://currency.prebid.org/latest.json";
const DEFAULT_CURRENCY_RATE_URL = 'http://currency.prebid.org/latest.json';
const CURRENCY_RATE_PRECISION = 4;

var bidResponseQueue = [];
Expand Down Expand Up @@ -86,14 +86,14 @@ function resetCurrency() {

export function addBidResponseDecorator(fn) {
return function(adUnitCode, bid) {
if(!bid) {
if (!bid) {
return fn.apply(this, arguments); // if no bid, call original and let it display warnings
}

let bidder = bid.bidderCode || bid.bidder;
if (currencyOverrides[bidder]) {
let override = currencyOverrides[bidder];
if(bid.currency && override !== bid.currency) {
if (bid.currency && override !== bid.currency) {
utils.logWarn(`Currency override '${bidder}: ${override}' ignored. adapter specified '${bid.currency}'`);
} else {
bid.currency = override;
Expand Down

0 comments on commit d30b610

Please sign in to comment.