From 7bbc97980e071f1e9d149701f6e61980112308f7 Mon Sep 17 00:00:00 2001 From: di-sukharev Date: Thu, 9 Mar 2023 21:31:31 +0800 Subject: [PATCH] * refactor(commit.ts): remove unused stdout variable and simplify pushSpinner.stop() call --- src/commands/commit.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/commands/commit.ts b/src/commands/commit.ts index 4262057..df55be8 100644 --- a/src/commands/commit.ts +++ b/src/commands/commit.ts @@ -54,9 +54,8 @@ ${chalk.grey('——————————————————')}` if (isPushConfirmedByUser && !isCancel(isPushConfirmedByUser)) { const pushSpinner = spinner(); pushSpinner.start('Running `git push`'); - const { stdout } = await execa('git', ['push']); + await execa('git', ['push']); pushSpinner.stop(`${chalk.green('✔')} successfully pushed all commits`); - outro(stdout); } } else outro(`${chalk.gray('✖')} process cancelled`); };