From 43ba72fb5768427b78d1a044488c5fce1539c419 Mon Sep 17 00:00:00 2001 From: Xu Cheng Date: Thu, 10 Sep 2015 13:38:51 +0800 Subject: descriptions: use each instead of map --- Library/Homebrew/descriptions.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library/Homebrew') diff --git a/Library/Homebrew/descriptions.rb b/Library/Homebrew/descriptions.rb index e66e388eb..bab14f148 100644 --- a/Library/Homebrew/descriptions.rb +++ b/Library/Homebrew/descriptions.rb @@ -27,7 +27,7 @@ class Descriptions # save it for future use. def self.generate_cache @cache = {} - Formula.map do |f| + Formula.each do |f| @cache[f.full_name] = f.desc end self.save_cache -- cgit v1.2.3