From 6979ab073cf32fcd4cbaef2f5e8f394847cc05c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Gronowski?= Date: Fri, 16 Aug 2024 16:35:46 +0200 Subject: [PATCH] list/tree: Fix some escape codes included in nonTTY MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Paweł Gronowski --- cli/command/image/tree.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/command/image/tree.go b/cli/command/image/tree.go index a034ca5260..010fadea21 100644 --- a/cli/command/image/tree.go +++ b/cli/command/image/tree.go @@ -338,8 +338,8 @@ func (h imgColumn) PrintR(clr aec.ANSI, s string) string { type noColor struct{} -func (a noColor) With(ansi ...aec.ANSI) aec.ANSI { - return aec.NewBuilder(ansi...).ANSI +func (a noColor) With(_ ...aec.ANSI) aec.ANSI { + return a } func (a noColor) Apply(s string) string {