Skip to content
This repository has been archived by the owner on Mar 29, 2022. It is now read-only.

Commit

Permalink
make silent errcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
high-moctane committed Jan 18, 2020
1 parent 5d78bb6 commit 7ae9ff7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nextword_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,9 @@ func BenchmarkNextword_Suggest(b *testing.B) {

for i := 0; i < b.N; i++ {
query := queries[i%len(queries)]
nw.Suggest(query)
if _, err := nw.Suggest(query); err != nil {
b.Fatal(err)
}
}
}

Expand Down

0 comments on commit 7ae9ff7

Please sign in to comment.