aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/diagnostic.rb
diff options
context:
space:
mode:
authorMarkus Reiter2017-04-27 10:44:44 +0200
committerMarkus Reiter2017-04-30 21:11:27 +0200
commitf8ad9d7efd5f3f489ed3c1671f16eb2a2eaef822 (patch)
treeb49a1211a472e686fed66010e2ddd38ca92cd2a9 /Library/Homebrew/diagnostic.rb
parent314483f75c8893eb68073f5863e7784797d6ea2a (diff)
downloadbrew-f8ad9d7efd5f3f489ed3c1671f16eb2a2eaef822.tar.bz2
Use `PATH` where possible.
Diffstat (limited to 'Library/Homebrew/diagnostic.rb')
-rw-r--r--Library/Homebrew/diagnostic.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/diagnostic.rb b/Library/Homebrew/diagnostic.rb
index 8cca1ba91..7657af193 100644
--- a/Library/Homebrew/diagnostic.rb
+++ b/Library/Homebrew/diagnostic.rb
@@ -100,7 +100,7 @@ module Homebrew
# See https://github.com/Homebrew/legacy-homebrew/pull/9986
def check_path_for_trailing_slashes
- all_paths = ENV["PATH"].split(File::PATH_SEPARATOR)
+ all_paths = PATH.new(ENV["PATH"]).to_a
bad_paths = all_paths.select { |p| p[-1..-1] == "/" }
return if bad_paths.empty?