mirror of
https://github.com/mistydemeo/tigerbrew.git
synced 2026-11-27 03:19:46 -05:00
Turn double modifier into a single conditional
This commit is contained in:
1 parent
9714f5a210
commit
ddbb98413c
1 file changed
+2
-2
@@ -34,13 +34,13 @@ class Tty
|
||||
end
|
||||
|
||||
def ohai title, *sput
|
||||
title = title.to_s[0, Tty.width - 4] if $stdout.tty? unless ARGV.verbose?
|
||||
title = title.to_s[0, Tty.width - 4] if $stdout.tty? && !ARGV.verbose?
|
||||
puts "#{Tty.blue}==>#{Tty.white} #{title}#{Tty.reset}"
|
||||
puts sput unless sput.empty?
|
||||
end
|
||||
|
||||
def oh1 title
|
||||
title = title.to_s[0, Tty.width - 4] if $stdout.tty? unless ARGV.verbose?
|
||||
title = title.to_s[0, Tty.width - 4] if $stdout.tty? && !ARGV.verbose?
|
||||
puts "#{Tty.green}==>#{Tty.white} #{title}#{Tty.reset}"
|
||||
end
|
||||
|
||||
|
||||
Reference in new issue
Block a user