Skip to content

Commit

Permalink
refactor: remove unused fmt code
Browse files Browse the repository at this point in the history
  • Loading branch information
cqroot committed Sep 21, 2024
1 parent ddb24dc commit 014dbe6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions choose/themes.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package choose

import (
"fmt"
"strings"

"github.com/cqroot/prompt/constants"
Expand Down Expand Up @@ -31,7 +30,7 @@ var ThemeDefault = func(choices []Choice, cursor int) string {
if cursor == i {
s.WriteString(constants.DefaultSelectedItemStyle.Render("• " + choice))
} else {
s.WriteString(constants.DefaultItemStyle.Render(fmt.Sprintf(" " + choice)))
s.WriteString(constants.DefaultItemStyle.Render(" " + choice))
}
s.WriteString("\n")
}
Expand Down Expand Up @@ -61,7 +60,7 @@ var ThemeArrow = func(choices []Choice, cursor int) string {
if cursor == i {
s.WriteString(constants.DefaultSelectedItemStyle.Render(("❯ " + choice)))
} else {
s.WriteString(constants.DefaultItemStyle.Render(fmt.Sprintf(" " + choice)))
s.WriteString(constants.DefaultItemStyle.Render(" " + choice))
}
s.WriteString("\n")
}
Expand Down

0 comments on commit 014dbe6

Please sign in to comment.