Skip to content

Commit

Permalink
Merge pull request #1257 from log4js-node/fixes-fs.appendFileSync
Browse files Browse the repository at this point in the history
fix: fs.appendFileSync should use flag instead of flags
  • Loading branch information
lamweili committed May 23, 2022
2 parents a46871e + d718d84 commit 4aba914
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/appenders/fileSync.js
Expand Up @@ -41,7 +41,7 @@ function touchFile(file, options) {
mkdir(path.dirname(file));

// try to throw EISDIR, EROFS, EACCES
fs.appendFileSync(file, "", { mode: options.mode, flags: options.flag });
fs.appendFileSync(file, "", { mode: options.mode, flag: options.flags });
}

class RollingFileSync {
Expand Down

0 comments on commit 4aba914

Please sign in to comment.