提交 5ce41a96 编写于 作者: J Justin Collins

Don't dup nils

上级 d78ce4ed
......@@ -364,7 +364,8 @@ class Brakeman::AliasProcessor < SexpProcessor
def only_ivars
res = SexpProcessor::Environment.new
env.all.each do |k, v|
res[k] = v.dup if k.node_type == :ivar
#TODO Why would this have nil values?
res[k] = v.dup if k.node_type == :ivar and not v.nil?
end
res
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册