diff options
| author | Mike McQuaid | 2016-08-20 08:47:11 +0100 |
|---|---|---|
| committer | GitHub | 2016-08-20 08:47:11 +0100 |
| commit | 7b1c5f0d862543d6a04b73f1a02568cfd9ead7d5 (patch) | |
| tree | a204ef0fbae7749d53922bdd325496deb4970a11 /Library | |
| parent | df3dc9bb262f9eaabdc10350e1829b0684cfd4f5 (diff) | |
| parent | efc01c9d5d26060dbcfae3fa314854ee8c98d740 (diff) | |
| download | brew-7b1c5f0d862543d6a04b73f1a02568cfd9ead7d5.tar.bz2 | |
Merge pull request #764 from reitermarkus/remove-load-path-warning
Remove LOAD_PATH warning from Hbc::CLI::Doctor.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cask/lib/hbc/cli/doctor.rb | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/cli/doctor.rb b/Library/Homebrew/cask/lib/hbc/cli/doctor.rb index 7ee861508..57ab22e3e 100644 --- a/Library/Homebrew/cask/lib/hbc/cli/doctor.rb +++ b/Library/Homebrew/cask/lib/hbc/cli/doctor.rb @@ -188,12 +188,8 @@ class Hbc::CLI::Doctor < Hbc::CLI::Base end def self.render_load_path(paths) - return "#{none_string} #{error_string}" if paths.nil? || paths.empty? - copy = Array.new(paths) - unless Hbc::Utils.file_is_descendant(copy[0], homebrew_taps) - copy[0] = "#{copy[0]} #{error_string 'error: should be descendant of Homebrew taps directory'}" - end - copy + return "#{none_string} #{error_string}" if [*paths].empty? + paths end def self.render_cached_downloads |
