aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/descriptions.rb
diff options
context:
space:
mode:
authorMarkus Reiter2017-10-08 20:38:32 +0200
committerGitHub2017-10-08 20:38:32 +0200
commitb806a53d88938ab2d2aeb5e96651ed6d47efcdf9 (patch)
tree067464b4c08f4c16ca3439b533f06669a78c370c /Library/Homebrew/descriptions.rb
parent91ab116ace7f4f97d3440190463c93be9ec6d675 (diff)
parent175ca909ee1a5b57aa0cae2c879920511f311b14 (diff)
downloadbrew-b806a53d88938ab2d2aeb5e96651ed6d47efcdf9.tar.bz2
Merge pull request #3278 from reitermarkus/code-style
Clean up code style and remove `.rubocop_todo.yml`.
Diffstat (limited to 'Library/Homebrew/descriptions.rb')
-rw-r--r--Library/Homebrew/descriptions.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/descriptions.rb b/Library/Homebrew/descriptions.rb
index ac1d68216..bc1982673 100644
--- a/Library/Homebrew/descriptions.rb
+++ b/Library/Homebrew/descriptions.rb
@@ -78,10 +78,10 @@ class Descriptions
formula_names.each do |name|
begin
- desc = Formulary.factory(name).desc
+ @cache[name] = Formulary.factory(name).desc
rescue FormulaUnavailableError, *FormulaVersions::IGNORED_EXCEPTIONS
+ @cache.delete(name)
end
- @cache[name] = desc
end
save_cache if options[:save]
end