remove commented code and no-op space

This commit is contained in:
Jared Wasinger 2023-11-20 13:28:24 +08:00 committed by Martin Holst Swende
parent d929f63b8f
commit 632a3f891f
No known key found for this signature in database
GPG key ID: 683B438C05A5DDF0

View file

@ -96,9 +96,7 @@ func (h *TerminalHandler) TerminalFormat(buf []byte, r slog.Record, usecolor boo
func (h *TerminalHandler) logfmt(buf *bytes.Buffer, r slog.Record, color string) {
writeAttr := func(attr slog.Attr, first, last bool) {
//if !first {
buf.WriteByte(' ')
//}
if color != "" {
buf.WriteString(color)