Skip to content

Commit dce6e0f

Browse files
committed
Move log line
1 parent 7555227 commit dce6e0f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tools/gitHooks/prettier.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,13 +100,13 @@ async function doPrettierCommit(changedFiles) {
100100
const gitSpinner = ora(' Creating automated style commit').start();
101101
await git.add(targetFiles);
102102

103-
const commit = await git.commit('[AUTOMATED]: Prettier Code Styling');
104-
console.log(
105-
chalk`{green Commited ${commit.commit} to branch ${commit.branch}}`
106-
);
103+
const commit = await git.commit('[AUTOMATED]: Prettier Code Styling');
107104
gitSpinner.stopAndPersist({
108105
symbol: '✅'
109106
});
107+
console.log(
108+
chalk`\n{green Commited ${commit.commit} to branch ${commit.branch}}`
109+
);
110110
}
111111

112112
module.exports = {

0 commit comments

Comments
 (0)