lib/brakeman/processors/lib/call_conversion_helper.rb in brakeman-lib-5.1.1 vs lib/brakeman/processors/lib/call_conversion_helper.rb in brakeman-lib-5.1.2
- old
+ new
@@ -87,9 +87,11 @@
else
original_exp
end
end
+ # You must check the return value for `nil`s -
+ # which indicate a key could not be found.
def hash_values_at hash, keys
values = keys.map do |key|
process_hash_access hash, key
end