Permalink
Browse files

Turn double modifier into a single conditional

  • Loading branch information...
1 parent 9714f5a commit ddbb98413cede48064e59e9d734780353e8a54de @jacknagel jacknagel committed Mar 21, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 Library/Homebrew/utils.rb
View
4 Library/Homebrew/utils.rb
@@ -34,13 +34,13 @@ def escape n
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

0 comments on commit ddbb984

Please sign in to comment.