Skip to content

Commit

Permalink
Issue winstonjs#556 maxFiles doesn't seem to behave as expected
Browse files Browse the repository at this point in the history
  • Loading branch information
nimrod-becker committed Mar 11, 2015
1 parent 7657b9f commit d03fcf6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/winston/transports/file.js
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ File.prototype._checkMaxFilesIncrementing = function (ext, basename, callback) {
}

oldest = this._created - this.maxFiles;
target = path.join(this.dirname, basename + (oldest === 0 ? oldest : '') + ext);
target = path.join(this.dirname, basename + (oldest !== 0 ? oldest : '') + ext);
fs.unlink(target, callback);
};

Expand Down

0 comments on commit d03fcf6

Please sign in to comment.