Skip to content

Commit

Permalink
Addressing review comment
Browse files Browse the repository at this point in the history
Used Ternary operator to set option value instead of OR condition
  • Loading branch information
patilms16 committed Apr 29, 2022
1 parent 2762f84 commit fcc42eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion daily-rotate-file.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ var DailyRotateFile = function (options) {
create_symlink: options.createSymlink ? options.createSymlink : false,
symlink_name: options.symlinkName ? options.symlinkName : 'current.log',
watch_log: options.watchLog ? options.watchLog : false,
audit_hash_type: options.auditHashType || 'sha256'
audit_hash_type: options.auditHashType ? options.auditHashType : 'sha256'
});

this.logStream.on('new', function (newFile) {
Expand Down

0 comments on commit fcc42eb

Please sign in to comment.