diff options
| author | Jack Nagel | 2015-02-18 21:36:48 -0500 |
|---|---|---|
| committer | Jack Nagel | 2015-02-18 21:36:48 -0500 |
| commit | eb41d05a093bc121dcb7c4e0337adb4db11b493d (patch) | |
| tree | 8c8ef9878b31cf5563dd825d18f2b06192cd98e7 /Library/Homebrew | |
| parent | 5d2c4317512b8e5c549e4cfb816a745b7467acf2 (diff) | |
| download | homebrew-eb41d05a093bc121dcb7c4e0337adb4db11b493d.tar.bz2 | |
Use ternary instead of inline rescue
Diffstat (limited to 'Library/Homebrew')
| -rw-r--r-- | Library/Homebrew/tab.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/tab.rb b/Library/Homebrew/tab.rb index 2415b843b..e88bed96b 100644 --- a/Library/Homebrew/tab.rb +++ b/Library/Homebrew/tab.rb @@ -92,7 +92,7 @@ class Tab < OpenStruct def self.dummy_tab f=nil attributes = { :used_options => [], - :unused_options => (f.options.as_flags rescue []), + :unused_options => f ? f.options.as_flags : [], :built_as_bottle => false, :poured_from_bottle => false, :tapped_from => "", |
