diff options
| author | Mike McQuaid | 2016-09-10 10:24:57 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2016-09-11 17:58:59 +0100 |
| commit | 9d782454abc21787e26885a5aa17114c60312919 (patch) | |
| tree | f8b894d1cf8a73415c659eb79715fff9bf755fb7 | |
| parent | 5d761f651abf13cc461398c6d542d495a1766a48 (diff) | |
| download | brew-9d782454abc21787e26885a5aa17114c60312919.tar.bz2 | |
cmd/list: fix Rubocop warnings.
| -rw-r--r-- | Library/Homebrew/cmd/list.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Library/Homebrew/cmd/list.rb b/Library/Homebrew/cmd/list.rb index 80576033a..9d5de74cc 100644 --- a/Library/Homebrew/cmd/list.rb +++ b/Library/Homebrew/cmd/list.rb @@ -29,7 +29,7 @@ module Homebrew # Unbrewed uses the PREFIX, which will exist # Things below use the CELLAR, which doesn't until the first formula is installed. unless HOMEBREW_CELLAR.exist? - raise NoSuchKegError.new(ARGV.named.first) unless ARGV.named.empty? + raise NoSuchKegError, ARGV.named.first unless ARGV.named.empty? return end @@ -60,7 +60,7 @@ module Homebrew private - UNBREWED_EXCLUDE_FILES = %w[.DS_Store] + UNBREWED_EXCLUDE_FILES = %w[.DS_Store].freeze UNBREWED_EXCLUDE_PATHS = %w[ .github/* bin/brew @@ -80,7 +80,7 @@ module Homebrew share/man/man1/brew.1 share/man/whatis share/zsh/site-functions/_brew - ] + ].freeze def list_unbrewed dirs = HOMEBREW_PREFIX.subdirs.map { |dir| dir.basename.to_s } @@ -117,7 +117,7 @@ module Homebrew end end pinned_versions.each do |d, version| - puts "#{d.basename}".concat(ARGV.include?("--versions") ? " #{version}" : "") + puts d.basename.to_s.concat(ARGV.include?("--versions") ? " #{version}" : "") end else # --versions without --pinned names.each do |d| |
