Skip to content

Commit

Permalink
fixed strange problem with webpack.
Browse files Browse the repository at this point in the history
  • Loading branch information
bobymxiang committed Aug 9, 2017
1 parent 44a6c68 commit 408847b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/readfiles.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ function readFiles(dir, options, callback, complete) {
};

fs.readdir(dir, function(err, list) {
if (err)  {
if (err) {
if (options.doneOnErr === true) {
if (err.code === 'EACCES') return done();
return done(err);
Expand Down
2 changes: 1 addition & 1 deletion lib/readfilesstream.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ function readFilesStream(dir, options, callback, complete) {
};

fs.readdir(dir, function(err, list) {
if (err)  {
if (err) {
if (options.doneOnErr === true) {
if (err.code === 'EACCES') return done();
return done(err);
Expand Down

0 comments on commit 408847b

Please sign in to comment.