Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[lib] remove stupid in operator call

  • Loading branch information...
commit d3b338807d3f8b49dcd6ee2dd496937d3a6090d3 1 parent b4a4cf3
@indutny indutny authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/revalidator.js
View
2  lib/revalidator.js
@@ -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);
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.