Skip to content

Commit

Permalink
Fix lint: named but unused params
Browse files Browse the repository at this point in the history
  • Loading branch information
thockin committed Feb 12, 2024
1 parent c9b5476 commit fa9664c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion example_slogr_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{}
}
Expand Down
2 changes: 1 addition & 1 deletion logr_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion slogr_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{}
}
Expand Down

0 comments on commit fa9664c

Please sign in to comment.