Skip to content

Commit 07df921

Browse files
author
Matt Berther
committed
resolve lint issues
1 parent a19a340 commit 07df921

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

daily-rotate-file.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ var DailyRotateFile = function (options) {
5050
var sizeK = Math.round(size / 1024);
5151
return sizeK === 0 ? '1k' : sizeK + 'k';
5252
}
53+
5354
return null;
5455
}
5556

@@ -106,6 +107,7 @@ var DailyRotateFile = function (options) {
106107
if (!oldFileExist || gzExist) {
107108
return;
108109
}
110+
109111
var gzip = zlib.createGzip();
110112
var inp = fs.createReadStream(oldFile);
111113
var out = fs.createWriteStream(oldFile + '.gz');
@@ -191,6 +193,7 @@ DailyRotateFile.prototype.query = function (options, callback) {
191193
if (!file) {
192194
return;
193195
}
196+
194197
var logFile = path.join(self.dirname, file);
195198
var buff = '';
196199

@@ -209,9 +212,11 @@ DailyRotateFile.prototype.query = function (options, callback) {
209212
if (stream.readable) {
210213
stream.destroy();
211214
}
215+
212216
if (!callback) {
213217
return;
214218
}
219+
215220
return err.code === 'ENOENT' ? callback(null, results) : callback(err);
216221
});
217222

@@ -259,6 +264,7 @@ DailyRotateFile.prototype.query = function (options, callback) {
259264
return obj;
260265
});
261266
}
267+
262268
callback(null, results);
263269
}
264270
});

test/random-string.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ module.exports = function (maxLen) {
1414
if (maxLen < minLen) {
1515
throw new Error('length must be >= ' + minLen);
1616
}
17+
1718
var str = '';
1819
var usedClasses = {};
1920
var charClass;
@@ -25,5 +26,6 @@ module.exports = function (maxLen) {
2526
}
2627
// Ensure we have picked from every char class.
2728
} while (Object.keys(usedClasses).length !== charClasses.length);
29+
2830
return str;
2931
};

0 commit comments

Comments
 (0)