Skip to content

Commit

Permalink
examples: fix linter warning
Browse files Browse the repository at this point in the history
The newer golangci-lint enables a revive check by default:

  output_test/output_test.go:115:42: unused-parameter: parameter 'vmodule' seems to be unused, consider removing or renaming it as _ (revive)
	newLogger := func(out io.Writer, v int, vmodule string) logr.Logger {
  • Loading branch information
pohly committed Jun 10, 2024
1 parent ab53041 commit d008cfe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/output_test/output_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ func TestKlogrStackZapr(t *testing.T) {
mapping[key] = value
}

newLogger := func(out io.Writer, v int, vmodule string) logr.Logger {
newLogger := func(out io.Writer, v int, _ string) logr.Logger {
// Backend: zapr as configured in k8s.io/component-base/logs/json.
klog.SetLogger(newZaprLogger(out, v))

Expand Down Expand Up @@ -177,7 +177,7 @@ func TestKlogrInternalStackZapr(t *testing.T) {
mapping[key] = value
}

newLogger := func(out io.Writer, v int, vmodule string) logr.Logger {
newLogger := func(out io.Writer, v int, _ string) logr.Logger {
// Backend: zapr as configured in k8s.io/component-base/logs/json.
klog.SetLogger(newZaprLogger(out, v))

Expand Down

0 comments on commit d008cfe

Please sign in to comment.