Skip to content

Commit

Permalink
fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas von Dein authored and TLINDEN committed Feb 14, 2024
1 parent 9d34e78 commit ee3b4e8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit ee3b4e8

Please sign in to comment.