diff options
| author | Xu Cheng | 2015-08-03 20:38:20 +0800 |
|---|---|---|
| committer | Xu Cheng | 2015-08-03 20:38:20 +0800 |
| commit | d62095710fef350551c415af3854926e66a40c71 (patch) | |
| tree | 156342fd269c7a9dcdb1eb9ae79e6c82b5ecc4ad /Library/Homebrew/cmd | |
| parent | 13d544e11e92ba8ea3788723432046f8dfe4adf9 (diff) | |
| download | brew-d62095710fef350551c415af3854926e66a40c71.tar.bz2 | |
More core files style updates
Diffstat (limited to 'Library/Homebrew/cmd')
| -rw-r--r-- | Library/Homebrew/cmd/doctor.rb | 2 | ||||
| -rw-r--r-- | Library/Homebrew/cmd/search.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb index 7c184587f..2a7c7abb1 100644 --- a/Library/Homebrew/cmd/doctor.rb +++ b/Library/Homebrew/cmd/doctor.rb @@ -576,7 +576,7 @@ class Checks end def check_xcode_select_path - if !MacOS::CLT.installed? and !File.file? "#{MacOS.active_developer_dir}/usr/bin/xcodebuild" + if !MacOS::CLT.installed? && !File.file?("#{MacOS.active_developer_dir}/usr/bin/xcodebuild") path = MacOS::Xcode.bundle_path path = "/Developer" if path.nil? || !path.directory? <<-EOS.undent diff --git a/Library/Homebrew/cmd/search.rb b/Library/Homebrew/cmd/search.rb index c3d1597c3..ba2932450 100644 --- a/Library/Homebrew/cmd/search.rb +++ b/Library/Homebrew/cmd/search.rb @@ -60,7 +60,7 @@ module Homebrew puts_columns(tap_results) count = local_results.length + tap_results.length - if count == 0 and !blacklisted? query + if count == 0 && !blacklisted?(query) puts "No formula found for #{query.inspect}." begin GitHub.print_pull_requests_matching(query) |
