Skip to content
Myr

fix XO lint issues

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Sindre Sorhus · committed by Sindre Sorhus · parent 56a20b1 · Browse files · 2 files+13 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+13 added−3 removed

  • other:+13 added−3 removed

2 files+13 added−3 removed

modified:index.js+9 added-2 removed
7 unmodified lines
8var isStream = require('is-stream');9var _getStream = require('get-stream');10var pathKey = require('path-key')();11var errname = require('./lib/errname');1213var TEN_MEBIBYTE = 1024 * 1024 * 10;1415function handleArgs(cmd, args, opts) {16 var parsed;
86 unmodified lines
103104 var ret;105106 if (encoding) {106 ret = _getStream(process[stream], {encoding: encoding, maxBuffer: maxBuffer});107 ret = _getStream(process[stream], {108 encoding: encoding,109 maxBuffer: maxBuffer110 });111 } else {112 ret = _getStream.buffer(process[stream], {maxBuffer: maxBuffer});113 }114
6 unmodified lines
121122function processDone(spawned) {123 return new Promise(function (resolve) {124 spawned.on('exit', function (code, signal) {121 resolve({code: code, signal: signal});125 resolve({126 code: code,127 signal: signal128 });129 });130131 spawned.on('error', function (err) {132 resolve({err: err});
108 unmodified lines
modified:test.js+4 added-1 removed