Skip to content

Commit

Permalink
Little refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Jul 16, 2016
1 parent b9a1de0 commit e9602c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ var DEFAULT = {
}

function createSchemaRule (rule, globalRules) {
var schema = typeof rule === 'function' ? { type: rule } : rule
var schema = isFunction(rule) ? { type: rule } : rule
var fields = merge({}, globalRules, schema)
return assign({}, DEFAULT.BLUEPRINT, fields)
}
Expand Down

0 comments on commit e9602c2

Please sign in to comment.