Skip to content

Commit

Permalink
Merge pull request #97 from jayeb/jayeb-patch-1
Browse files Browse the repository at this point in the history
Pass full path into Checker instead of relative
  • Loading branch information
sindresorhus committed Oct 27, 2015
2 parents 81a6f88 + 0fde1cc commit cd4f150
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ module.exports = function (opts) {
var contents = file.contents.toString();

if (opts.fix) {
fixResults = checker.fixString(contents, file.relative);
fixResults = checker.fixString(contents, file.path);
errors = fixResults.errors;
file.contents = new Buffer(fixResults.output);
} else {
errors = checker.checkString(contents, file.relative);
errors = checker.checkString(contents, file.path);
}

var errorList = errors.getErrorList();
Expand Down

0 comments on commit cd4f150

Please sign in to comment.