Skip to content

Commit 09e596c

Browse files
chouchoujichouchouji
andauthored
refactor(progress): remove unnecessary return statement in start func… (#387)
Co-authored-by: chouchouji <[email protected]>
1 parent a66efe0 commit 09e596c

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/three-ideas-refuse.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@clack/prompts": patch
3+
---
4+
5+
refactor(progress): remove unnecessary return statement in start function

packages/prompts/src/progress-bar.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export function progress({
5353

5454
const start = (msg = '') => {
5555
previousMessage = msg;
56-
return spin.start(drawProgress('initial', msg));
56+
spin.start(drawProgress('initial', msg));
5757
};
5858
const advance = (step = 1, msg?: string): void => {
5959
value = Math.min(max, step + value);

0 commit comments

Comments
 (0)