Skip to content

Commit fcc42eb

Browse files
committedApr 29, 2022
Addressing review comment
Used Ternary operator to set option value instead of OR condition
1 parent 2762f84 commit fcc42eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎daily-rotate-file.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ var DailyRotateFile = function (options) {
9292
create_symlink: options.createSymlink ? options.createSymlink : false,
9393
symlink_name: options.symlinkName ? options.symlinkName : 'current.log',
9494
watch_log: options.watchLog ? options.watchLog : false,
95-
audit_hash_type: options.auditHashType || 'sha256'
95+
audit_hash_type: options.auditHashType ? options.auditHashType : 'sha256'
9696
});
9797

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

0 commit comments

Comments
 (0)
Please sign in to comment.