more linting
This commit is contained in:
parent
2de838bc76
commit
cc2e94cf11
@ -1,8 +1,9 @@
|
|||||||
var BaseRollingFileStream = require('./BaseRollingFileStream'),
|
"use strict";
|
||||||
format = require('../date_format'),
|
var BaseRollingFileStream = require('./BaseRollingFileStream')
|
||||||
async = require('async'),
|
, format = require('../date_format')
|
||||||
fs = require('fs'),
|
, async = require('async')
|
||||||
util = require('util');
|
, fs = require('fs')
|
||||||
|
, util = require('util');
|
||||||
|
|
||||||
module.exports = DateRollingFileStream;
|
module.exports = DateRollingFileStream;
|
||||||
|
|
||||||
@ -46,7 +47,8 @@ DateRollingFileStream.prototype.shouldRoll = function() {
|
|||||||
var lastTime = this.lastTimeWeWroteSomething,
|
var lastTime = this.lastTimeWeWroteSomething,
|
||||||
thisTime = format.asString(this.pattern, new Date(this.now()));
|
thisTime = format.asString(this.pattern, new Date(this.now()));
|
||||||
|
|
||||||
debug("DateRollingFileStream.shouldRoll with now = " + this.now() + ", thisTime = " + thisTime + ", lastTime = " + lastTime);
|
debug("DateRollingFileStream.shouldRoll with now = " +
|
||||||
|
this.now() + ", thisTime = " + thisTime + ", lastTime = " + lastTime);
|
||||||
|
|
||||||
this.lastTimeWeWroteSomething = thisTime;
|
this.lastTimeWeWroteSomething = thisTime;
|
||||||
this.previousTime = lastTime;
|
this.previousTime = lastTime;
|
||||||
|
Loading…
Reference in New Issue
Block a user