Skip to content

Commit

Permalink
fixed bad callback sig
Browse files Browse the repository at this point in the history
  • Loading branch information
mikestopcontinues committed Jul 15, 2015
1 parent 7e19727 commit d66c954
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ function plugin(matchers) {
var validator = rule.metadata[key];

if ('default' in validator && !(key in data)) {
return data[key] = typeof validator.default === 'function' ? validator.default(data[key]) : validator.default;
return data[key] = typeof validator.default === 'function' ? validator.default(file, data) : validator.default;
}

if ('exists' in validator && validator.exists != key in data) {
Expand Down

0 comments on commit d66c954

Please sign in to comment.