Skip to content

Commit

Permalink
Merge pull request #107 from log4js-node/update-docs
Browse files Browse the repository at this point in the history
chore(docs): added docs for istanbul ignore
  • Loading branch information
lamweili authored Mar 14, 2022
2 parents 3c7922f + 660859c commit 22877e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/RollingFileWriteStream.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ class RollingFileWriteStream extends Writable {

// Sorted from the oldest to the latest
async _getExistingFiles() {
const files = await fs.readdir(this.fileObject.dir).catch( /* istanbul ignore next */ () => []);
const files = await fs.readdir(this.fileObject.dir).catch( /* istanbul ignore next: will not happen on windows */ () => []);

debug(`_getExistingFiles: files=${files}`);
const existingFileDetails = files
Expand Down

0 comments on commit 22877e6

Please sign in to comment.