From 4a1dfd946b716ce945ad7c887e310bd05d68552f Mon Sep 17 00:00:00 2001 From: Drewry Pope Date: Tue, 31 Oct 2023 00:10:51 -0500 Subject: [PATCH] formatting --- text.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/text.go b/text.go index 2368172..8cdbb73 100644 --- a/text.go +++ b/text.go @@ -144,11 +144,11 @@ func needsQuoting(str string) bool { func (l *Logger) textFormatter(keyvals ...interface{}) { lenKeyvals := len(keyvals) - firstElementOfLastKeyvalPair := lenKeyvals - 2 for i := 0; i < lenKeyvals; i += 2 { firstKey := i == 0 - moreKeys := i < firstElementOfLastKeyvalPair + moreKeys := i < lenKeyvals-2 + switch keyvals[i] { case TimestampKey: if t, ok := keyvals[i+1].(time.Time); ok {