lib/brakeman/processors/output_processor.rb in brakeman-lib-4.10.0 vs lib/brakeman/processors/output_processor.rb in brakeman-lib-4.10.1
- old
+ new
@@ -86,10 +86,10 @@
return "def #{name}#{args}\n#{body}\nend".gsub(/\n\s*\n+/, "\n")
end
def process_iter exp
call = process exp[1]
- block = process_rlist exp[3..-1]
+ block = process_rlist exp.sexp_body(3)
out = "#{call} do\n #{block}\n end"
out
end