appease linter

This commit is contained in:
Jared Wasinger 2023-11-28 20:53:32 +08:00
parent a3738de9e1
commit 38926cc6e5

View file

@ -185,7 +185,7 @@ func builtinReplace(_ []string, attr slog.Attr, logfmt bool) slog.Attr {
if logfmt { if logfmt {
return slog.String("t", attr.Value.Time().Format(timeFormat)) return slog.String("t", attr.Value.Time().Format(timeFormat))
} else { } else {
return slog.Attr{"t", attr.Value} return slog.Attr{Key: "t", Value: attr.Value}
} }
} }
case slog.LevelKey: case slog.LevelKey: