diff --git a/example_slogr_test.go b/example_slogr_test.go index 6f568f9..55bae82 100644 --- a/example_slogr_test.go +++ b/example_slogr_test.go @@ -30,7 +30,7 @@ import ( ) var debugWithoutTime = &slog.HandlerOptions{ - ReplaceAttr: func(groups []string, a slog.Attr) slog.Attr { + ReplaceAttr: func(_ []string, a slog.Attr) slog.Attr { if a.Key == "time" { return slog.Attr{} } diff --git a/logr_test.go b/logr_test.go index dc33cc2..7675826 100644 --- a/logr_test.go +++ b/logr_test.go @@ -60,7 +60,7 @@ func TestEnabled(t *testing.T) { calledEnabled := 0 sink := &testLogSink{} - sink.fnEnabled = func(lvl int) bool { + sink.fnEnabled = func(_ int) bool { calledEnabled++ return true } diff --git a/slogr_test.go b/slogr_test.go index 2b00a50..077bfbe 100644 --- a/slogr_test.go +++ b/slogr_test.go @@ -86,7 +86,7 @@ func TestFromSlogHandler(t *testing.T) { } var debugWithoutTime = &slog.HandlerOptions{ - ReplaceAttr: func(groups []string, a slog.Attr) slog.Attr { + ReplaceAttr: func(_ []string, a slog.Attr) slog.Attr { if a.Key == "time" { return slog.Attr{} }