Skip to content

Commit

Permalink
fix(index): fixed exec function
Browse files Browse the repository at this point in the history
  • Loading branch information
aeswibon committed Mar 28, 2024
1 parent a53b8cf commit 48d7429
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,7 @@ const exec = (cmd, args = []) =>
if (code !== 0 && !stdout.includes("nothing to commit")) {
return reject({ code, stderr });
}

return resolve();
return resolve({ code, stdout });
});

app.on("error", () => reject({ code: 1, stderr }));
Expand Down

0 comments on commit 48d7429

Please sign in to comment.