Skip to content

Commit

Permalink
Pasa test. Close #6
Browse files Browse the repository at this point in the history
  • Loading branch information
diegoefe committed Nov 14, 2016
1 parent aa9c4ac commit 75b269d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/discrepances.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,13 @@ function compareArrays(a, b, opts) {
if(rv.length) {
return {array:rv};
} else {
var diffs={};
/*jshint forin: false */
/*eslint-disable guard-for-in */
for(var p in rv) {
return {array:objectWithProp(p,rv[p])};
}
for(var p in rv) { diffs[p] = rv[p]; }
/*jshint forin: true */
/*eslint-enable guard-for-in */
if(Object.keys(diffs).length) { return {array:diffs}; }
}
return null;
}
Expand Down

0 comments on commit 75b269d

Please sign in to comment.