Fixes bug in detecting empty options (see issue #132 on github)
This commit is contained in:
@@ -30,7 +30,7 @@ function DateRollingFileStream(filename, pattern, options, now) {
|
||||
filename = filename + this.lastTimeWeWroteSomething;
|
||||
}
|
||||
delete options.alwaysIncludePattern;
|
||||
if (options === {}) {
|
||||
if (Object.keys(options).length === 0) {
|
||||
options = null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user