We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b429d62 commit 09c4adaCopy full SHA for 09c4ada
lib/spawnify.js
@@ -29,16 +29,16 @@
29
module.exports = function(command, options) {
30
var spawnify;
31
32
+ options = options || {};
33
+
34
assert(command, 'command could not be empty!');
35
- if (options && options.cwd)
36
+ if (options.cwd)
37
options.cwd = untildify(options.cwd);
38
else
- options = {
- cwd: process.cwd()
39
- };
+ options.cwd = process.cwd()
40
41
- spawnify = new Spawnify(command, options);
+ spawnify = new Spawnify(command, options);
42
43
return spawnify;
44
};
0 commit comments