aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorrichiethomas2017-10-18 18:27:42 -0400
committerrichiethomas2017-10-18 20:21:49 -0400
commitb135a70c57b059bd42fb2095a7f29e73ce5d6aad (patch)
tree158b8850fb0c60a086d17f78c9a1928351ecd311 /Library
parente5e84eec7d91c5a00949e74da15745204c3ca5d5 (diff)
downloadbrew-b135a70c57b059bd42fb2095a7f29e73ce5d6aad.tar.bz2
Fix brew style warnings
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/list.rb2
-rw-r--r--Library/Homebrew/cmd/readall.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/cmd/list.rb b/Library/Homebrew/cmd/list.rb
index 436fc1f97..f778541a7 100644
--- a/Library/Homebrew/cmd/list.rb
+++ b/Library/Homebrew/cmd/list.rb
@@ -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
diff --git a/Library/Homebrew/cmd/readall.rb b/Library/Homebrew/cmd/readall.rb
index c123eba79..b54405d30 100644
--- a/Library/Homebrew/cmd/readall.rb
+++ b/Library/Homebrew/cmd/readall.rb
@@ -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