summaryrefslogtreecommitdiff
path: root/lib/gitlab/ci/build/artifacts/metadata
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/ci/build/artifacts/metadata')
-rw-r--r--lib/gitlab/ci/build/artifacts/metadata/entry.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gitlab/ci/build/artifacts/metadata/entry.rb b/lib/gitlab/ci/build/artifacts/metadata/entry.rb
index 4dae02ce4f7..25b71fc3275 100644
--- a/lib/gitlab/ci/build/artifacts/metadata/entry.rb
+++ b/lib/gitlab/ci/build/artifacts/metadata/entry.rb
@@ -57,7 +57,7 @@ module Gitlab
return @children if @children
child_pattern = %r{^#{Regexp.escape(@path)}[^/]+/?$}
- @children = select_entries { |entry| entry =~ child_pattern }
+ @children = select_entries { |path| path =~ child_pattern }
end
def directories(opts = {})
@@ -110,7 +110,7 @@ module Gitlab
private
def select_entries
- selected = @entries.select { |entry, _metadata| yield entry }
+ selected = @entries.select { |path, _metadata| yield path }
selected.map { |path, _metadata| self.class.new(path, @entries) }
end
end