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-12-02 09:08:59 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-12-02 09:08:59 +0300
commit5ab92edc77d032261ce105e3fa13355b92f8ed32 (patch)
treed2628c82859c7c8810481ec54c7d564f2e080b78 /lib/gitlab/changes_list.rb
parent0409a31740fa29fa1131c0496da16677cb3debe4 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/changes_list.rb')
-rw-r--r--lib/gitlab/changes_list.rb12
1 files changed, 5 insertions, 7 deletions
diff --git a/lib/gitlab/changes_list.rb b/lib/gitlab/changes_list.rb
index fb75a78a978..999d2ee4356 100644
--- a/lib/gitlab/changes_list.rb
+++ b/lib/gitlab/changes_list.rb
@@ -15,14 +15,12 @@ module Gitlab
end
def changes
- @changes ||= begin
- @raw_changes.map do |change|
- next if change.blank?
+ @changes ||= @raw_changes.map do |change|
+ next if change.blank?
- oldrev, newrev, ref = change.strip.split(' ')
- { oldrev: oldrev, newrev: newrev, ref: ref }
- end.compact
- end
+ oldrev, newrev, ref = change.strip.split(' ')
+ { oldrev: oldrev, newrev: newrev, ref: ref }
+ end.compact
end
end
end