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>2023-03-03 06:08:02 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-03-03 06:08:02 +0300
commit173b547fb98ab12ae41f295915453e598be3a647 (patch)
tree2ade7b72b501275292e6984c6cba2cbaba9d9aa6 /lib/gitlab/changes_list.rb
parenta77c9fccd057514a8b78a10642779f54a22f3f76 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/changes_list.rb')
-rw-r--r--lib/gitlab/changes_list.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gitlab/changes_list.rb b/lib/gitlab/changes_list.rb
index 999d2ee4356..ca55692ca2f 100644
--- a/lib/gitlab/changes_list.rb
+++ b/lib/gitlab/changes_list.rb
@@ -15,12 +15,12 @@ module Gitlab
end
def changes
- @changes ||= @raw_changes.map do |change|
+ @changes ||= @raw_changes.filter_map do |change|
next if change.blank?
oldrev, newrev, ref = change.strip.split(' ')
{ oldrev: oldrev, newrev: newrev, ref: ref }
- end.compact
+ end
end
end
end