Skip to content

Commit cd4f150

Browse files
committed
Merge pull request #97 from jayeb/jayeb-patch-1
Pass full path into Checker instead of relative
2 parents 81a6f88 + 0fde1cc commit cd4f150

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,11 @@ module.exports = function (opts) {
5555
var contents = file.contents.toString();
5656

5757
if (opts.fix) {
58-
fixResults = checker.fixString(contents, file.relative);
58+
fixResults = checker.fixString(contents, file.path);
5959
errors = fixResults.errors;
6060
file.contents = new Buffer(fixResults.output);
6161
} else {
62-
errors = checker.checkString(contents, file.relative);
62+
errors = checker.checkString(contents, file.path);
6363
}
6464

6565
var errorList = errors.getErrorList();

0 commit comments

Comments
 (0)