Permalink
Browse files

[lib] remove stupid in operator call

  • Loading branch information...
1 parent b4a4cf3 commit d3b338807d3f8b49dcd6ee2dd496937d3a6090d3 @indutny indutny committed Sep 29, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/revalidator.js
View
@@ -189,7 +189,7 @@
type;
function constrain(name, value, assert) {
- if ((name in schema) && !assert(value, schema[name])) {
+ if (schema[name] !== undefined && !assert(value, schema[name])) {
error(name, property, value, schema, errors);
}
}

0 comments on commit d3b3388

Please sign in to comment.