Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gammazero committed Sep 10, 2024
1 parent 0b2bb72 commit 9170508
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion tree.go
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ func (t *Tree[T]) Iter() iter.Seq2[string, T] {
//
// The tree is traversed in lexical order, making the output deterministic.
func (t *Tree[T]) IterAt(key string) iter.Seq2[string, T] {
nothing := func(yield func(string, T) bool) { return }
nothing := func(yield func(string, T) bool) {}

// Find the subtree with a matching prefix.
node := &t.root
Expand Down
1 change: 0 additions & 1 deletion tree_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -909,7 +909,6 @@ func TestIter(t *testing.T) {

clear(visited)
testKey := "rat/winks/wryly/once"
keys = append(keys, testKey)
tree.Put(testKey, strings.ToUpper(testKey))

for key, val := range tree.IterPath(testKey) {
Expand Down

0 comments on commit 9170508

Please sign in to comment.