Skip to content

Commit

Permalink
chore: Update loop iteration in ouroboros_test.go to use range withou…
Browse files Browse the repository at this point in the history
…t assigning the value
  • Loading branch information
i5heu committed May 18, 2024
1 parent 0a4c12d commit 41f0a41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ouroboros_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ func Example() {
if err != nil {
log.Fatal(fmt.Sprintf("Error retrieving root events: %s", err))
}
for _ = range rootEvents {
for range rootEvents {
fmt.Printf("Retrieved root event\n")
}

Expand All @@ -483,7 +483,7 @@ func Example() {
if err != nil {
log.Fatal(fmt.Sprintf("Error retrieving children of root event: %s", err))
}
for _ = range children {
for range children {
fmt.Printf("Retrieved child event\n")
}
}
Expand Down

0 comments on commit 41f0a41

Please sign in to comment.