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