From 564ebd1137ac3f75ef7646d49b77cb6174d53abe Mon Sep 17 00:00:00 2001 From: guoguangwu Date: Tue, 11 Jul 2023 14:14:21 +0800 Subject: [PATCH] chore: the argument is already a string, there's no need to use fmt.Sprintf Signed-off-by: guoguangwu --- pkg/table/table.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/table/table.go b/pkg/table/table.go index 341bfa0..49821de 100644 --- a/pkg/table/table.go +++ b/pkg/table/table.go @@ -147,7 +147,7 @@ func (t *Table) Format() *Table { } if c.formatFn != nil { - r.strValues[j] = fmt.Sprintf("%s", c.formatFn(v)) + r.strValues[j] = c.formatFn(v) } else if c.format != "" { r.strValues[j] = fmt.Sprintf(c.format, v) } else {