We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 05a1f80 commit 33d99b4Copy full SHA for 33d99b4
1 file changed
lib/vtk/commands/scan/repo.rb
@@ -54,7 +54,8 @@ def run_script(script_path)
54
end
55
56
def script_options
57
- flags = OPTION_FLAGS.filter_map { |key, flag| flag if options[key] }
+ # Use select + map instead of filter_map for Ruby 2.6 compatibility
58
+ flags = OPTION_FLAGS.select { |key, _flag| options[key] }.values
59
flags << "--depth=#{options[:depth]}" if options[:depth]
60
flags
61
0 commit comments