Skip to content

Commit

Permalink
Merge pull request #26 from MaiaVictor/fix-equals-fn
Browse files Browse the repository at this point in the history
Fix equals function
  • Loading branch information
evertonfraga authored Aug 31, 2018
2 parents 2fda6fb + 3b61a0b commit 4526563
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/swarm.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ module.exports = function (_ref) {
if (a.length !== b.length) {
return false;
} else {
for (var i = 0, l = a.length; i < a; ++i) {
for (var i = 0, l = a.length; i < l; ++i) {
if (a[i] !== b[i]) return false;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/swarm.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ module.exports = ({
if (a.length !== b.length) {
return false;
} else {
for (let i = 0, l = a.length; i < a; ++i) {
for (let i = 0, l = a.length; i < l; ++i) {
if (a[i] !== b[i]) return false;
}
}
Expand Down

0 comments on commit 4526563

Please sign in to comment.