log: unused variable

This commit is contained in:
web3santa 2024-04-14 22:32:04 +09:00
parent 7bb3fb1481
commit e9834431e8

View file

@ -79,7 +79,7 @@ func (h *TerminalHandler) format(buf []byte, r slog.Record, usecolor bool) []byt
}
func (h *TerminalHandler) formatAttributes(buf *bytes.Buffer, r slog.Record, color string) {
writeAttr := func(attr slog.Attr, first, last bool) {
writeAttr := func(attr slog.Attr, _, last bool) {
buf.WriteByte(' ')
if color != "" {