From e1545d114b6638abca6b5ef260adee349d73ee9a Mon Sep 17 00:00:00 2001 From: Ryan D McGuire Date: Fri, 29 Dec 2023 10:45:24 -0500 Subject: [PATCH] Fix project language detection --- internal/gitlab/gitlab.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/gitlab/gitlab.go b/internal/gitlab/gitlab.go index a40c9ba..19a7471 100644 --- a/internal/gitlab/gitlab.go +++ b/internal/gitlab/gitlab.go @@ -217,6 +217,7 @@ func (c *Client) GetProjectLanguage(project *gitlab.Project) *string { var mostUsed float32 for name, p := range *l { if p > mostUsed { + mostUsed = p mainLang = &name } }