remove recursive Sprintf()

This commit is contained in:
2026-01-19 14:02:01 +01:00
parent cc59586cee
commit 1f35389ed9

View File

@@ -425,10 +425,10 @@ func colorizeOutput(conf cfg.Config, input string) string {
col := colorizer.Replace
if strings.Contains(col, ":") {
parts := strings.Split(col, ":")
return color.Sprintf(fmt.Sprintf("<fg=%s;bg=%s>%s</>", parts[0], parts[1], in))
return color.Sprintf("<fg=%s;bg=%s>%s</>", parts[0], parts[1], in)
}
return color.Sprintf(fmt.Sprintf("<fg=%s>%s</>", col, in))
return color.Sprintf("<fg=%s>%s</>", col, in)
})
}
}