Skip to content

Commit

Permalink
chore: Style fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Valentin Kiselev <mrexox@evilmartians.com>
  • Loading branch information
mrexox committed Aug 13, 2022
1 parent 70e842a commit 2b40785
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/log/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ func (l *Logger) Println(args ...interface{}) {

if l.spinner.Active() {
l.spinner.Stop()
defer func() { l.spinner.Start() }()
defer l.spinner.Start()
}

_, _ = fmt.Fprintln(l.out, args...)
Expand All @@ -220,7 +220,7 @@ func (l *Logger) Printf(format string, args ...interface{}) {

if l.spinner.Active() {
l.spinner.Stop()
defer func() { l.spinner.Start() }()
defer l.spinner.Start()
}

_, _ = fmt.Fprintf(l.out, format, args...)
Expand Down

0 comments on commit 2b40785

Please sign in to comment.