Skip to content

Commit 3282b02

Browse files
authored
Update models/repo/language_stats.go
Signed-off-by: silverwind <[email protected]>
1 parent f52fd70 commit 3282b02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/repo/language_stats.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ func UpdateLanguageStats(ctx context.Context, repo *Repository, commitID string,
181181
if err := db.Insert(ctx, &LanguageStat{
182182
RepoID: repo.ID,
183183
CommitID: commitID,
184-
IsPrimary: strings.EqualFold(lang, topLang),
184+
IsPrimary: lang == topLang,
185185
Language: lang,
186186
Size: size,
187187
}); err != nil {

0 commit comments

Comments
 (0)