Skip to content

Commit

Permalink
Update structureLoader.js (#90)
Browse files Browse the repository at this point in the history
Add missing '!' to correctly validate functions.
  • Loading branch information
gabriella-bankova authored and adrai committed May 17, 2017
1 parent 05ecac6 commit d81b2d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/structure/structureLoader.js
Expand Up @@ -496,7 +496,7 @@ function reorderValidationRules (obj, ordered, validatorExtension) {
}
},
validator: function (fn) {
if (!fn || _.isFunction(fn)) {
if (!fn || !_.isFunction(fn)) {
var err = new Error('Please pass a valid function!');
debug(err);
throw err;
Expand Down

0 comments on commit d81b2d2

Please sign in to comment.