mirror of
https://github.com/Maks1mS/bubbles.git
synced 2025-10-09 05:57:16 +03:00
Mark innocuous numbers as nolint
This commit is contained in:
@@ -128,7 +128,7 @@ func NewModel(opts ...Option) (*Model, error) {
|
||||
func (m Model) View(percent float64) string {
|
||||
b := strings.Builder{}
|
||||
if m.ShowPercentage {
|
||||
percentage := fmt.Sprintf(m.PercentFormat, percent*100)
|
||||
percentage := fmt.Sprintf(m.PercentFormat, percent*100) //nolint:gomnd
|
||||
if m.PercentageStyle != nil {
|
||||
percentage = m.PercentageStyle.Styled(percentage)
|
||||
}
|
||||
|
Reference in New Issue
Block a user