提交 74f6f28e 编写于 作者: J Justin

Merge pull request #132 from fsword/master

Allow Brakeman to be run without tty
......@@ -346,7 +346,11 @@ module Brakeman::Util
end
def truncate_table str
@terminal_width ||= ::HighLine::SystemExtensions::terminal_size[0]
@terminal_width ||= if $stdin && $stdin.tty?
::HighLine::SystemExtensions::terminal_size[0]
else
80
end
lines = str.lines
lines.map do |line|
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册