Skip to content
Snippets Groups Projects
Commit 22f2f6ae authored by Misty De Meo's avatar Misty De Meo
Browse files

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

Array#count was apparently introduced in 1.8.7.
parent d13a39d1
No related branches found
No related tags found
No related merge requests found
......@@ -29,7 +29,7 @@ module Homebrew extend self
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)
......
......@@ -21,7 +21,7 @@ module Homebrew extend self
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% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment