Skip to content

Commit

Permalink
Removed unused data parameter which breaks segmentio/validator
Browse files Browse the repository at this point in the history
  • Loading branch information
jameslnewell committed May 1, 2014
1 parent 48c24bf commit 5d517a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ exports.length = function(length) {
* @return {Boolean}
*/
exports.minlength = function(length) {
return function(val, data) {
return function(val) {
if(val) {
return val && val.length && val.length >= length;
}
Expand All @@ -208,7 +208,7 @@ exports.minlength = function(length) {
* @return {Boolean}
*/
exports.maxlength = function(length) {
return function(val, data) {
return function(val) {
if(val) {
return val && val.length && val.length <= length;
}
Expand Down

0 comments on commit 5d517a4

Please sign in to comment.