lint
This commit is contained in:
+6
-5
@@ -71,11 +71,12 @@ function journalctl(unit, options) {
|
||||
assert.strictEqual(typeof unit, 'string');
|
||||
assert.strictEqual(typeof options, 'object');
|
||||
|
||||
const args = [];
|
||||
args.push('--lines=' + (options.lines === -1 ? 'all' : options.lines));
|
||||
args.push(`--unit=${unit}`);
|
||||
args.push('--no-pager');
|
||||
args.push('--output=short-iso');
|
||||
const args = [
|
||||
'--lines=' + (options.lines === -1 ? 'all' : options.lines),
|
||||
`--unit=${unit}`,
|
||||
'--no-pager',
|
||||
'--output=short-iso'
|
||||
];
|
||||
|
||||
if (options.follow) args.push('--follow');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user