From 05a70dc2f5b6e693f22346103b298327fd5672e6 Mon Sep 17 00:00:00 2001 From: guoguangwu Date: Wed, 19 Jul 2023 17:08:45 +0800 Subject: [PATCH] chore: the argument is already a string, there's no need to use fmt.Sprintf --- subcmd/list.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subcmd/list.go b/subcmd/list.go index e9078ec..4f35187 100644 --- a/subcmd/list.go +++ b/subcmd/list.go @@ -81,7 +81,7 @@ func (c *List) Run(args []string) error { if filepath.Join(path.InstallDir(), f.Name()) == current { name = color.New(color.FgYellow, color.BgBlack).Sprintf("%s", f.Name()) } else { - name = fmt.Sprintf("%s", f.Name()) + name = f.Name() } c.log.Printf(name) }