Skip to content

Commit

Permalink
languages with percent
Browse files Browse the repository at this point in the history
  • Loading branch information
marriva committed Jan 12, 2024
1 parent 60074d1 commit f3c13b9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/projects/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -401,10 +401,10 @@ func (p ProjectWithLanguages) LanguagesNames() string {
return "-"
}

keys := make([]string, 0, len(*p.Languages))
for k := range *p.Languages {
keys = append(keys, k)
names := make([]string, 0, len(*p.Languages))
for k, v := range *p.Languages {
names = util.InsertString(names, fmt.Sprintf("%s: %.2f", k, v))
}

return strings.Join(keys, ", ")
return strings.Join(names, ", ")
}

0 comments on commit f3c13b9

Please sign in to comment.