Permalink
Browse files

Lints validators files

  • Loading branch information...
1 parent 1f2f92c commit f67aaba05fee0a20b0c5c869dd9f6c5bd284d134 @dresende committed Jun 16, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/validators.js
View
@@ -91,7 +91,7 @@ validators.unique = function () {
query[prop] = v;
Model.find(query, function (records) {
- if (!records || records.length == 0) {
+ if (!records || records.length === 0) {
return next();
}
if (records.length == 1 && records[0].id === data.id) {
@@ -149,4 +149,4 @@ validators.patterns.ipv4 = function () {
return validators.patterns.match("^" + [ part, part, part, part ].join("\\.") + "$", "");
};
-module.exports = validators;
+module.exports = validators;

0 comments on commit f67aaba

Please sign in to comment.