diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-03 06:08:02 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-03 06:08:02 +0300 |
commit | 173b547fb98ab12ae41f295915453e598be3a647 (patch) | |
tree | 2ade7b72b501275292e6984c6cba2cbaba9d9aa6 /lib/gitlab/changes_list.rb | |
parent | a77c9fccd057514a8b78a10642779f54a22f3f76 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/changes_list.rb')
-rw-r--r-- | lib/gitlab/changes_list.rb | 4 |
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 |