Skip to content

Commit

Permalink
No es6.
Browse files Browse the repository at this point in the history
  • Loading branch information
ssipos90 committed Dec 4, 2019
1 parent 539cdd5 commit eaf7c08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function getValidator (options, schema) {
}

if (!validation.valid) {
var errors = validation.errors.map(error => {
var errors = validation.errors.map(function (error) {
if (error.message.indexOf('not match any schemas') >= 0 && error.subErrors && error.subErrors.length > 0) {
return error.subErrors[0];
} else {
Expand Down

0 comments on commit eaf7c08

Please sign in to comment.