X Tutup
Skip to content

Commit aa183d7

Browse files
committed
Set spinner writer stream in a preferred way
1 parent 0bc6311 commit aa183d7

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

utils/utils.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,5 @@ func Humanize(s string) string {
7575
}
7676

7777
func Spinner(w io.Writer) *spinner.Spinner {
78-
s := spinner.New(spinner.CharSets[11], 400*time.Millisecond)
79-
s.Writer = w
80-
return s
78+
return spinner.New(spinner.CharSets[11], 400*time.Millisecond, spinner.WithWriter(w))
8179
}

0 commit comments

Comments
 (0)
X Tutup