Skip to content

Commit

Permalink
use object destructuring to extract stdout (#8)
Browse files Browse the repository at this point in the history
* use object destructuring to extract stdout

* drop node 4, include node 10
  • Loading branch information
rgbkrk authored and silverwind committed Jun 14, 2018
1 parent 64c9d93 commit fd93672
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
@@ -1,5 +1,5 @@
language: node_js
node_js:
- '10'
- '8'
- '6'
- '4'
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -38,7 +38,7 @@ module.exports.sync = shell => {
}

try {
const stdout = execa.sync(shell || defaultShell, args).stdout;
const {stdout} = execa.sync(shell || defaultShell, args);
return parseEnv(stdout);
} catch (err) {
if (shell) {
Expand Down

0 comments on commit fd93672

Please sign in to comment.