Skip to content

Commit e1c2a9d

Browse files
author
Marius Schuller
committed
Hotfix compilation_dir.rb with change from upstream github#261
1 parent 30ac2e2 commit e1c2a9d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/octocatalog-diff/catalog-diff/filter/compilation_dir.rb

+4-3
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,13 @@ def remove_compilation_dir(v, dir)
6666
value
6767
end
6868

69-
def traverse(a)
69+
# fix from https://github.com/github/octocatalog-diff/issues/261#issuecomment-1334980032
70+
def traverse(a, &proc)
7071
case a
7172
when Array
72-
a.map { |v| traverse(v, &Proc.new) }
73+
a.map { |v| traverse(v, &proc) }
7374
when Hash
74-
traverse(a.values, &Proc.new)
75+
traverse(a.values, &proc)
7576
else
7677
yield a
7778
end

0 commit comments

Comments
 (0)