Skip to content

Commit

Permalink
Allow % characters in FinalMSG
Browse files Browse the repository at this point in the history
FinalMSG is not intended to be a format string for `printf`, so it
should not be passed as such.
  • Loading branch information
mislav committed Apr 23, 2020
1 parent bf6cf7a commit bad4fb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spinner.go
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ func (s *Spinner) Stop() {
}
s.erase()
if s.FinalMSG != "" {
fmt.Fprintf(s.Writer, s.FinalMSG)
fmt.Fprint(s.Writer, s.FinalMSG)
}
s.stopChan <- struct{}{}
}
Expand Down

0 comments on commit bad4fb7

Please sign in to comment.