diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-05-28 00:10:59 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-05-28 00:10:59 +0300 |
commit | 95d309bfb847dbafbfb3784d1933a3eb269dde24 (patch) | |
tree | 8d3951664f3a856b8cd77b5111aceae3cda9a023 /lib/gitlab/ci/variables | |
parent | 479221aa79c2e18497589f0aef175a06fb5f5e29 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/ci/variables')
-rw-r--r-- | lib/gitlab/ci/variables/collection.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/gitlab/ci/variables/collection.rb b/lib/gitlab/ci/variables/collection.rb index e2a8af9c26b..c7829b12557 100644 --- a/lib/gitlab/ci/variables/collection.rb +++ b/lib/gitlab/ci/variables/collection.rb @@ -24,6 +24,10 @@ module Gitlab self end + def compact + Collection.new(select { |variable| !variable.value.nil? }) + end + def concat(resources) return self if resources.nil? |