diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-02-28 18:13:55 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-02-28 18:13:55 +0300 |
commit | 8188ca655a7437381491e565406869c747c1b40a (patch) | |
tree | c9f4295b0ffe7867d9a037d03c926ae65574cb7c /lib/gitlab/language_detection.rb | |
parent | 4eac7e06bd6fc1c90a20ae36412b34ac73a15cb2 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/language_detection.rb')
-rw-r--r-- | lib/gitlab/language_detection.rb | 2 |
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 |