Skip to content

Commit

Permalink
Make Travis happy
Browse files Browse the repository at this point in the history
  • Loading branch information
AmazingMech2418 authored Aug 5, 2020
1 parent e43bfcf commit 1530cf5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/processNested.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ module.exports = function(data){
let k = keyParts[index];

// Ensure we don't allow prototype pollution
if (OBJECT_PROTOTYPE_KEYS.includes(k) || (ARRAY_PROTOTYPE_KEYS.includes(k) && Array.isArray(current))) {
const IN_ARRAY_PROTOTYPE = ARRAY_PROTOTYPE_KEYS.includes(k) && Array.isArray(current);
if (OBJECT_PROTOTYPE_KEYS.includes(k) || IN_ARRAY_PROTOTYPE) {
continue;
}

Expand Down

0 comments on commit 1530cf5

Please sign in to comment.