more linting
This commit is contained in:
parent
cc2e94cf11
commit
40ec9e98e4
@ -1,7 +1,8 @@
|
||||
var fs = require('fs'),
|
||||
stream,
|
||||
util = require('util'),
|
||||
semver = require('semver');
|
||||
"use strict";
|
||||
var fs = require('fs')
|
||||
, stream
|
||||
, util = require('util')
|
||||
, semver = require('semver');
|
||||
|
||||
if (semver.satisfies(process.version, '>=0.10.0')) {
|
||||
stream = require('stream');
|
||||
@ -21,7 +22,7 @@ module.exports = BaseRollingFileStream;
|
||||
function BaseRollingFileStream(filename, options) {
|
||||
debug("In BaseRollingFileStream");
|
||||
this.filename = filename;
|
||||
this.options = options || { encoding: 'utf8', mode: 0644, flags: 'a' };
|
||||
this.options = options || { encoding: 'utf8', mode: parseInt('0644', 8), flags: 'a' };
|
||||
this.currentSize = 0;
|
||||
|
||||
function currentFileSize(file) {
|
||||
|
Loading…
Reference in New Issue
Block a user