Skip to content

Commit

Permalink
Cleanup whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
chriso committed Jul 21, 2016
1 parent ce31057 commit 47a1573
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lib/isIP.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ function isIP(str) {
// it has been checked before that the last
// block is a valid IPv4 address
} else if (!ipv6Block.test(blocks[i])) {
return false;
}
return false;
}
}
if (foundOmissionBlock) {
return blocks.length >= 1;
Expand Down
4 changes: 2 additions & 2 deletions validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -280,8 +280,8 @@
// it has been checked before that the last
// block is a valid IPv4 address
} else if (!ipv6Block.test(blocks[i])) {
return false;
}
return false;
}
}
if (foundOmissionBlock) {
return blocks.length >= 1;
Expand Down
Loading

0 comments on commit 47a1573

Please sign in to comment.