Skip to content

Commit d65c8fc

Browse files
committed
chore(spawnify) lint
1 parent f70fd79 commit d65c8fc

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

.madrun.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
const {run} = require('madrun');
44

55
module.exports = {
6-
'lint': () => 'putout lib madrun.js',
6+
'lint': () => 'putout lib .madrun.js',
77
'fix:lint': () => run('lint', '--fix'),
88
};
99

lib/spawnify.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,7 @@ Spawnify.prototype._set = function set(type, command, options) {
130130

131131
case 'exec':
132132
result = tryCatch(exec, command, options);
133-
134-
[error] = result;
135-
child = result[1];
133+
[error, child] = result;
136134
break;
137135

138136
case 'spawn':
@@ -141,8 +139,7 @@ Spawnify.prototype._set = function set(type, command, options) {
141139

142140
result = tryCatch(spawn, command, args, options);
143141

144-
[error] = result;
145-
child = result[1];
142+
[error, child] = result;
146143
break;
147144
}
148145

0 commit comments

Comments
 (0)