Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-02-28 18:13:55 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-02-28 18:13:55 +0300
commit8188ca655a7437381491e565406869c747c1b40a (patch)
treec9f4295b0ffe7867d9a037d03c926ae65574cb7c /lib/gitlab/language_detection.rb
parent4eac7e06bd6fc1c90a20ae36412b34ac73a15cb2 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/language_detection.rb')
-rw-r--r--lib/gitlab/language_detection.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/language_detection.rb b/lib/gitlab/language_detection.rb
index 6f7fa9fe03b..b259f58350b 100644
--- a/lib/gitlab/language_detection.rb
+++ b/lib/gitlab/language_detection.rb
@@ -63,7 +63,7 @@ module Gitlab
@repository
.languages
.first(MAX_LANGUAGES)
- .to_h { |l| [l[:label], l] }
+ .index_by { |l| l[:label] }
end
end
end