Skip to content

Commit

Permalink
fix(lint): gomnd
Browse files Browse the repository at this point in the history
  • Loading branch information
maaslalani committed Nov 21, 2023
1 parent 6058adc commit c5601b7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion list/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import (
"github.com/charmbracelet/lipgloss"
)

const indent = 2

// List is a list of items.
type List struct {
items []any
Expand Down Expand Up @@ -59,7 +61,7 @@ func (l *List) String() string {
s.WriteString(item)
s.WriteRune('\n')
case *List:
item = item.Indent(l.getIndent() + 2)
item = item.Indent(l.getIndent() + indent)
s.WriteString(item.String())
default:
s.WriteString(l.bullet.String())
Expand Down

0 comments on commit c5601b7

Please sign in to comment.