Skip to content

Commit

Permalink
Merge pull request #53 from ondrej-fabry/patch-1
Browse files Browse the repository at this point in the history
Fix issue with fs constants
  • Loading branch information
tcort authored Jul 26, 2018
2 parents 2fdaa23 + da1868a commit 2202813
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion markdown-link-check
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ stream.on('data', function (chunk) {
}

if (program.config) {
fs.access(program.config, fs.constants.R_OK, function (err) {
fs.access(program.config, (fs.constants || fs).R_OK, function (err) {
if (!err) {
let configStream = fs.createReadStream(program.config);
let configData = '';
Expand Down

0 comments on commit 2202813

Please sign in to comment.