Skip to content

Commit

Permalink
ci: fix linter warnings (#440)
Browse files Browse the repository at this point in the history
Signed-off-by: Andreas Auernhammer <github@aead.dev>
  • Loading branch information
aead authored Feb 10, 2024
1 parent a275f23 commit 16a6929
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion internal/cache/barrier_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
)

func TestBarrierZeroValue(t *testing.T) {
t.Run("Lock", func(t *testing.T) {
t.Run("Lock", func(*testing.T) {
var b Barrier[int]
b.Lock(0)
b.Unlock(0)
Expand Down
4 changes: 2 additions & 2 deletions internal/cache/cow_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ func TestCowZeroValue(t *testing.T) {
t.Fatal("Empty Cow contains value")
}
})
t.Run("DeleteAll", func(t *testing.T) {
t.Run("DeleteAll", func(*testing.T) {
var cow Cow[int, string]
cow.DeleteAll() // Check whether this panics for an empty Cow
})
t.Run("DeleteFunc", func(t *testing.T) {
t.Run("DeleteFunc", func(*testing.T) {
var cow Cow[int, string]
cow.DeleteFunc(func(_ int, _ string) bool { return true }) // Check whether this panics for an empty Cow
})
Expand Down

0 comments on commit 16a6929

Please sign in to comment.