Skip to content

Commit

Permalink
fixup! refactor: create a executeCommand function and use it for ev…
Browse files Browse the repository at this point in the history
…ery `yarn` or `npm` calls
  • Loading branch information
gaetanmaisse committed Jun 8, 2020
1 parent efa423b commit 2195244
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cli/src/js-package-manager/JsPackageManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,6 @@ export abstract class JsPackageManager {
throw new Error(commandResult.stderr.toString());
}

return commandResult.stdout.toString();
return commandResult.stdout ? commandResult.stdout.toString() : '';
}
}

0 comments on commit 2195244

Please sign in to comment.