aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2013-03-13 09:45:55 -0700
committerAdam Vandenberg2013-03-13 09:45:55 -0700
commita75b095fe5d274842411b3767be7fdf6d05c5f8a (patch)
tree930cde284b6eacd5ee074f0638c55e50ba5968bd /Library
parentae3348f60b7892626cb1b347840bffebf36eda2b (diff)
downloadhomebrew-a75b095fe5d274842411b3767be7fdf6d05c5f8a.tar.bz2
doctor: mess with indentation
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/doctor.rb27
1 files changed, 13 insertions, 14 deletions
diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb
index 59c01ef22..8016d142e 100644
--- a/Library/Homebrew/cmd/doctor.rb
+++ b/Library/Homebrew/cmd/doctor.rb
@@ -38,23 +38,21 @@ end
class Checks
- # Sorry for the lack of an indent here, the diff would have been unreadable.
############# HELPERS
-def remove_trailing_slash s
- (s[s.length-1] == '/') ? s[0,s.length-1] : s
-end
-
+ def remove_trailing_slash s
+ (s[s.length-1] == '/') ? s[0,s.length-1] : s
+ end
-def paths
- @paths ||= ENV['PATH'].split(':').collect do |p|
- begin
- remove_trailing_slash(File.expand_path(p))
- rescue ArgumentError
- onoe "The following PATH component is invalid: #{p}"
- end
- end.uniq.compact
-end
+ def paths
+ @paths ||= ENV['PATH'].split(':').collect do |p|
+ begin
+ remove_trailing_slash(File.expand_path(p))
+ rescue ArgumentError
+ onoe "The following PATH component is invalid: #{p}"
+ end
+ end.uniq.compact
+ end
# Finds files in HOMEBREW_PREFIX *and* /usr/local.
# Specify paths relative to a prefix eg. "include/foo.h".
@@ -70,6 +68,7 @@ end
end
############# END HELPERS
+# Sorry for the lack of an indent here, the diff would have been unreadable.
# See https://github.com/mxcl/homebrew/pull/9986
def check_path_for_trailing_slashes
bad_paths = ENV['PATH'].split(':').select{|p| p[p.length-1, p.length] == '/'}