mirror of
https://codeberg.org/scip/yadu.git
synced 2025-12-16 20:21:00 +01:00
fix linting errors
This commit is contained in:
@@ -35,7 +35,7 @@ type Enemy struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type Point struct {
|
type Point struct {
|
||||||
y, Y, yes, n, N, no, True, False, on, off int
|
Y, N, True, False int
|
||||||
}
|
}
|
||||||
|
|
||||||
type Tests struct {
|
type Tests struct {
|
||||||
@@ -185,8 +185,8 @@ func TestLogger(t *testing.T) {
|
|||||||
|
|
||||||
for _, tt := range tests {
|
for _, tt := range tests {
|
||||||
var buf bytes.Buffer
|
var buf bytes.Buffer
|
||||||
|
ttopts := tt.opts
|
||||||
logger := slog.New(yadu.NewHandler(&buf, &tt.opts))
|
logger := slog.New(yadu.NewHandler(&buf, &ttopts))
|
||||||
|
|
||||||
if !tt.with.Equal(slog.Attr{}) {
|
if !tt.with.Equal(slog.Attr{}) {
|
||||||
logger = logger.With(tt.with)
|
logger = logger.With(tt.with)
|
||||||
|
|||||||
Reference in New Issue
Block a user