fix: remove unwanted async calls

This commit is contained in:
Sérgio Salgado 2021-01-18 16:03:28 +00:00 committed by Josh Harvey
parent 2151c4b4aa
commit c1044232e9
3 changed files with 11 additions and 11 deletions

View file

@ -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) {