Fix brew style warnings
This commit is contained in:
parent
e5e84eec7d
commit
b135a70c57
@ -39,7 +39,7 @@ module Homebrew
|
||||
filtered_list
|
||||
elsif ARGV.named.empty?
|
||||
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?
|
||||
puts Formatter.columns(full_names)
|
||||
else
|
||||
|
@ -14,7 +14,7 @@ module Homebrew
|
||||
def readall
|
||||
if ARGV.include?("--syntax")
|
||||
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)
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user