Fix brew style warnings

This commit is contained in:
richiethomas 2017-10-18 18:27:42 -04:00
parent e5e84eec7d
commit b135a70c57
2 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ module Homebrew
filtered_list filtered_list
elsif ARGV.named.empty? elsif ARGV.named.empty?
if ARGV.include? "--full-name" if ARGV.include? "--full-name"
full_names = Formula.installed.map(&:full_name).sort &tap_and_name_comparison full_names = Formula.installed.map(&:full_name).sort(&tap_and_name_comparison)
return if full_names.empty? return if full_names.empty?
puts Formatter.columns(full_names) puts Formatter.columns(full_names)
else else

View File

@ -14,7 +14,7 @@ module Homebrew
def readall def readall
if ARGV.include?("--syntax") if ARGV.include?("--syntax")
scan_files = "#{HOMEBREW_LIBRARY_PATH}/**/*.rb" scan_files = "#{HOMEBREW_LIBRARY_PATH}/**/*.rb"
ruby_files = Dir.glob(scan_files).reject{|file| file =~ /vendor|cask/ } ruby_files = Dir.glob(scan_files).reject { |file| file =~ /vendor|cask/ }
Homebrew.failed = true unless Readall.valid_ruby_syntax?(ruby_files) Homebrew.failed = true unless Readall.valid_ruby_syntax?(ruby_files)
end end