Skip to content

Commit

Permalink
LGTM Fixes: fixes for current LGTM issues (prebid#6851)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisHuie authored and stsepelin committed May 28, 2021
1 parent 98f3653 commit 372119f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions integrationExamples/gpt/idImportLibrary_example.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
params: {
pid: '14', // Set your real identityLink placement ID here
// notUse3P: true // true/false - If you do not want to use 3P endpoint to retrieve envelope. If you do not set this property to true, 3p endpoint will be fired. By default this propertt is undefined and 3p request will be fired.},
},
storage: {
type: 'html5',
name: 'idl_env',
Expand Down
2 changes: 1 addition & 1 deletion modules/aolBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ export const spec = {
let tagName = item.match(tagNameRegExp)[0];
let url = item.match(srcRegExp)[2];

if (tagName && tagName) {
if (tagName && url) {
pixelsItems.push({
type: tagName === SYNC_TYPES.IMAGE.TAG ? SYNC_TYPES.IMAGE.TYPE : SYNC_TYPES.IFRAME.TYPE,
url: url
Expand Down
6 changes: 3 additions & 3 deletions modules/datablocksBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,15 @@ export const spec = {
id: bidRequest.bidId,
tagid: bidRequest.adUnitCode,
secure: window.location.protocol == 'https:'
}
};

if (utils.deepAccess(bidRequest, `mediaTypes.banner`)) {
let sizes = bidRequest.mediaTypes.banner.sizes;
if (sizes.length == 1) {
imp.banner = {
w: sizes[0][0],
h: sizes[0][1]
}
};
} else if (sizes.length > 1) {
imp.banner = {
format: sizes.map(size => ({ w: size[0], h: size[1] }))
Expand Down Expand Up @@ -181,7 +181,7 @@ export const spec = {
if (VIDEO_PARAMS.indexOf(k) > -1) {
imp.video[k] = bidRequest.params.video[k];
}
})
});
}
}
let host = bidRequest.params.host;
Expand Down
2 changes: 1 addition & 1 deletion modules/gridBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ function _addBidResponse(serverBid, bidRequest, bidResponses) {
netRevenue: false,
ttl: TIME_TO_LIVE,
meta: {
advertiserDomains: serverBid && serverBid.adomain ? serverBid.adomain : []
advertiserDomains: serverBid.adomain ? serverBid.adomain : []
},
dealId: serverBid.dealid
};
Expand Down

0 comments on commit 372119f

Please sign in to comment.