fix: remove unwanted async calls
This commit is contained in:
parent
2151c4b4aa
commit
c1044232e9
3 changed files with 11 additions and 11 deletions
|
|
@ -5,7 +5,7 @@ const exec = require('child_process').exec
|
|||
* @param {String} cmd
|
||||
* @return {Object} { stdout: String, stderr: String }
|
||||
*/
|
||||
async function execCommand (cmd) {
|
||||
function execCommand (cmd) {
|
||||
return new Promise(function (resolve, reject) {
|
||||
const proc = exec(cmd, (err, stdout, stderr) => {
|
||||
if (err) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue