From b135a70c57b059bd42fb2095a7f29e73ce5d6aad Mon Sep 17 00:00:00 2001 From: richiethomas Date: Wed, 18 Oct 2017 18:27:42 -0400 Subject: [PATCH] Fix brew style warnings --- Library/Homebrew/cmd/list.rb | 2 +- Library/Homebrew/cmd/readall.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/cmd/list.rb b/Library/Homebrew/cmd/list.rb index 436fc1f976..f778541a79 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 c123eba797..b54405d304 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