From ee3b4e8e9b3d385e6f23ce0fd9ae3eac01ecf4ff Mon Sep 17 00:00:00 2001 From: Thomas von Dein Date: Wed, 14 Feb 2024 13:13:01 +0100 Subject: [PATCH] fix linting errors --- handler_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/handler_test.go b/handler_test.go index 4976bce..f55686c 100644 --- a/handler_test.go +++ b/handler_test.go @@ -35,7 +35,7 @@ type Enemy struct { } type Point struct { - y, Y, yes, n, N, no, True, False, on, off int + Y, N, True, False int } type Tests struct { @@ -185,8 +185,8 @@ func TestLogger(t *testing.T) { for _, tt := range tests { var buf bytes.Buffer - - logger := slog.New(yadu.NewHandler(&buf, &tt.opts)) + ttopts := tt.opts + logger := slog.New(yadu.NewHandler(&buf, &ttopts)) if !tt.with.Equal(slog.Attr{}) { logger = logger.With(tt.with)