style fix
parent
fdfbd4402a
commit
33d1ac4682
|
@ -5,7 +5,7 @@ env:
|
|||
rules:
|
||||
block-scoped-var: 2
|
||||
callback-return: 2
|
||||
complexity: [2, 16]
|
||||
complexity: [2, 18]
|
||||
curly: [2, multi-or-nest, consistent]
|
||||
dot-location: [2, property]
|
||||
dot-notation: 2
|
||||
|
|
|
@ -258,10 +258,9 @@ function compile(schema, root, localRefs, baseId) {
|
|||
if (self._opts.validateSchema !== false) {
|
||||
var deps = rule.definition.dependencies;
|
||||
if (deps && !deps.every(function(keyword) {
|
||||
return Object.prototype.hasOwnProperty.call(parentSchema, keyword);
|
||||
})) {
|
||||
return Object.prototype.hasOwnProperty.call(parentSchema, keyword);
|
||||
}))
|
||||
throw new Error('parent schema must have all required keywords: ' + deps.join(','));
|
||||
}
|
||||
|
||||
var validateSchema = rule.definition.validateSchema;
|
||||
if (validateSchema) {
|
||||
|
|
Loading…
Reference in New Issue