chore: the argument is already a string, there's no need to use fmt.Sprintf

Signed-off-by: guoguangwu <guoguangwu@magic-shield.com>
pull/320/head
guoguangwu 10 months ago
parent 6a17ed2d3c
commit 564ebd1137

@ -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 {

Loading…
Cancel
Save