diff options
| author | Jack Nagel | 2013-06-09 15:31:40 -0500 |
|---|---|---|
| committer | Jack Nagel | 2013-06-09 15:31:40 -0500 |
| commit | c384e28ae166320ab638e1dd1f4f42a7fdf7c11f (patch) | |
| tree | 3a2b70cb516db69d467eb48717f0eb9e114de97e /Library | |
| parent | 6f98bc11afc988ab08c909bff9e13b578243c922 (diff) | |
| download | homebrew-c384e28ae166320ab638e1dd1f4f42a7fdf7c11f.tar.bz2 | |
Check respond_to? instead of inline rescue
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/caveats.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/caveats.rb b/Library/Homebrew/caveats.rb index 4fe451ead..87b86b987 100644 --- a/Library/Homebrew/caveats.rb +++ b/Library/Homebrew/caveats.rb @@ -8,7 +8,7 @@ class Caveats def caveats caveats = [] caveats << f.caveats - caveats << f.keg_only_text rescue nil if f.keg_only? + caveats << f.keg_only_text if f.keg_only? && f.respond_to?(:keg_only_text) caveats << bash_completion_caveats caveats << zsh_completion_caveats caveats << plist_caveats |
