Skip to content

Commit

Permalink
fix: apply code review suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
caarlos0 committed Apr 18, 2024
1 parent 14ef502 commit 2989941
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tree/item.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ func NewStringData(data ...string) Data {

var _ Data = NewFilter(nil)

// Filter applies a filter on some data.
// Filter applies a filter on some data. You could use this to create a new

Check failure on line 56 in tree/item.go

View workflow job for this annotation

GitHub Actions / lint

File is not `goimports`-ed (goimports)
// tree whose values all satisfy the condition provided in the Filter() function.
type Filter struct {
data Data
filter func(index int) bool
Expand Down

0 comments on commit 2989941

Please sign in to comment.