aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Nagel2013-03-21 17:20:57 -0500
committerJack Nagel2013-03-21 17:20:57 -0500
commit21f566b662e1643da1ee9baf1ee8f3eb5293c019 (patch)
treecd93c80753d8496796f205b7dedf65a11a5eb950
parent688ae72919d7b635f2b37475b24462dfc00f02c8 (diff)
downloadbrew-21f566b662e1643da1ee9baf1ee8f3eb5293c019.tar.bz2
Turn double modifier into a single conditional
-rw-r--r--Library/Homebrew/utils.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb
index b7a3119a2..ddcdc1aab 100644
--- a/Library/Homebrew/utils.rb
+++ b/Library/Homebrew/utils.rb
@@ -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