style: replace len(status) == 0 with status == ''

This commit is contained in:
2026-06-13 21:27:51 +02:00
parent a922953776
commit bcc75467f0

View File

@@ -333,7 +333,7 @@ func formatInlineField(key string, value any) string {
func formatHTTPStatus(value any) string { func formatHTTPStatus(value any) string {
status := fmt.Sprint(value) status := fmt.Sprint(value)
if !colorLogs || len(status) == 0 { if !colorLogs || status == "" {
return status return status
} }