Skip to content
Browse files

tap/untap: use Array#length, not #count

Array#count was apparently introduced in 1.8.7.
  • Loading branch information...
1 parent b4e940a commit ebddb7d4d2e160012f64ab1170502788a020d3ca @mistydemeo mistydemeo committed
Showing with 2 additions and 2 deletions.
  1. +1 −1 Library/Homebrew/cmd/tap.rb
  2. +1 −1 Library/Homebrew/cmd/untap.rb
View
2 Library/Homebrew/cmd/tap.rb
@@ -29,7 +29,7 @@ def install_tap user, repo
files = []
tapd.find_formula{ |file| files << tapd.basename.join(file) }
link_tap_formula(files)
- puts "Tapped #{files.count} formula"
+ puts "Tapped #{files.length} formula"
# Figure out if this repo is private
# curl will throw an exception if the repo is private (Github returns a 404)
View
2 Library/Homebrew/cmd/untap.rb
@@ -21,7 +21,7 @@ def untap
tapd.find_formula{ |file| files << Pathname.new("#{user}-#{repo}").join(file) }
unlink_tap_formula(files)
rm_rf tapd
- puts "Untapped #{files.count} formula"
+ puts "Untapped #{files.length} formula"
end
def unlink_tap_formula formulae

0 comments on commit ebddb7d

Please sign in to comment.
Something went wrong with that request. Please try again.