* refactor(commit.ts): remove unused stdout variable and simplify pushSpinner.stop() call
This commit is contained in:
@@ -54,9 +54,8 @@ ${chalk.grey('——————————————————')}`
|
|||||||
if (isPushConfirmedByUser && !isCancel(isPushConfirmedByUser)) {
|
if (isPushConfirmedByUser && !isCancel(isPushConfirmedByUser)) {
|
||||||
const pushSpinner = spinner();
|
const pushSpinner = spinner();
|
||||||
pushSpinner.start('Running `git push`');
|
pushSpinner.start('Running `git push`');
|
||||||
const { stdout } = await execa('git', ['push']);
|
await execa('git', ['push']);
|
||||||
pushSpinner.stop(`${chalk.green('✔')} successfully pushed all commits`);
|
pushSpinner.stop(`${chalk.green('✔')} successfully pushed all commits`);
|
||||||
outro(stdout);
|
|
||||||
}
|
}
|
||||||
} else outro(`${chalk.gray('✖')} process cancelled`);
|
} else outro(`${chalk.gray('✖')} process cancelled`);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user