Fix project language detection

This commit is contained in:
Ryan McGuire 2023-12-29 10:45:24 -05:00
parent 156ddc2009
commit e1545d114b

View File

@ -217,6 +217,7 @@ func (c *Client) GetProjectLanguage(project *gitlab.Project) *string {
var mostUsed float32 var mostUsed float32
for name, p := range *l { for name, p := range *l {
if p > mostUsed { if p > mostUsed {
mostUsed = p
mainLang = &name mainLang = &name
} }
} }