6
0
mirror of https://github.com/grdl/git-get.git synced 2026-02-04 23:14:43 +00:00

Fix issues found by perfsprint linter

This commit is contained in:
Grzegorz Dlugoszewski
2025-08-24 18:21:17 +02:00
parent aa1da8e3da
commit 1bf52c4c32
4 changed files with 5 additions and 5 deletions

View File

@@ -20,7 +20,7 @@ func NewTreePrinter() *TreePrinter {
// Print generates a tree view of repos and their statuses.
func (p *TreePrinter) Print(root string, repos []Printable) string {
if len(repos) == 0 {
return fmt.Sprintf("There are no git repos under %s", root)
return "There are no git repos under " + root
}
tree := buildTree(root, repos)