lib/brakeman/processors/lib/call_conversion_helper.rb in brakeman-lib-5.0.2 vs lib/brakeman/processors/lib/call_conversion_helper.rb in brakeman-lib-5.0.4
- old
+ new
@@ -74,12 +74,10 @@
if args.length == 1 and integer? args.first
index = args.first.value
#Have to do this because first element is :array and we have to skip it
array[1..-1][index] or original_exp
- elsif all_literals? array
- safe_literal(array.line)
else
original_exp
end
end
@@ -91,16 +89,8 @@
elsif all_literals? hash, :hash
safe_literal(hash.line)
else
original_exp
end
- end
-
- def hash_values_at hash, keys
- values = keys.map do |key|
- process_hash_access hash, key
- end
-
- Sexp.new(:array).concat(values).line(hash.line)
end
end
end