提交 3e367bbe 编写于 作者: J Justin Collins

Still return string if error raised formatting code

If exceptions occured while formatting code,
OutputProcessor#format would return `nil`. Now it should return
a string instead so it can be used safely.
上级 a661118a
......@@ -10,7 +10,7 @@ class Brakeman::OutputProcessor < Ruby2Ruby
#Copies +exp+ and then formats it.
def format exp
process exp.deep_clone
process(exp.deep_clone) || ""
end
alias process_safely format
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册