Skip to content

Commit

Permalink
fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
FilipStamenkovic committed Jan 8, 2020
1 parent 2b033c1 commit 2b2748d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions modules/aardvarkBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,9 @@ export const spec = {
* @returns {String}
*/
serializeSupplyChain: function (supplyChain) {
if (!hasValidSupplyChainParams(supplyChain))
if (!hasValidSupplyChainParams(supplyChain)) {
return '';
}

return `${supplyChain.ver},${supplyChain.complete}!${spec.serializeSupplyChainNodes(supplyChain.nodes)}`;
},
Expand All @@ -216,7 +217,7 @@ export const spec = {
},
};

/**
/**
* Make sure the required params are present
* @param {Object} schain
* @param {Bool}
Expand All @@ -228,8 +229,9 @@ export function hasValidSupplyChainParams(schain) {
const requiredFields = ['asi', 'sid', 'hp'];

let isValid = schain.nodes.reduce((status, node) => {
if (!status)
if (!status) {
return status;
}
return requiredFields.every(field => node[field]);
}, true);
if (!isValid) {
Expand Down

0 comments on commit 2b2748d

Please sign in to comment.