mirror of
https://github.com/zoriya/bubbles.git
synced 2026-08-05 04:36:07 +00:00
chore(merge): branch 'master' into v2-mini-tidy
This commit is contained in:
@@ -330,7 +330,7 @@ func (m Model) percentageView(percent float64) string {
|
||||
return ""
|
||||
}
|
||||
percent = math.Max(0, math.Min(1, percent))
|
||||
percentage := fmt.Sprintf(m.PercentFormat, percent*100) //nolint:gomnd
|
||||
percentage := fmt.Sprintf(m.PercentFormat, percent*100) //nolint:mnd
|
||||
percentage = m.PercentageStyle.Inline(true).Render(percentage)
|
||||
return percentage
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user