diff options
| author | Jack Nagel | 2013-06-09 15:31:40 -0500 |
|---|---|---|
| committer | Jack Nagel | 2013-06-09 15:31:40 -0500 |
| commit | 1d265e5a0acbc6fa92d4684bcbc9bc2abcf0155a (patch) | |
| tree | 1514e21bb4ab0884c2486b62cfaef33947e3d2f4 | |
| parent | a1e30cdd3a142bc8d58b7885156b186497721778 (diff) | |
| download | brew-1d265e5a0acbc6fa92d4684bcbc9bc2abcf0155a.tar.bz2 | |
Check respond_to? instead of inline rescue
| -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 |
