diff options
| author | Jack Nagel | 2015-02-18 21:36:48 -0500 |
|---|---|---|
| committer | Jack Nagel | 2015-02-18 21:36:48 -0500 |
| commit | e92a87179a2f90d8a43731b67adcd0b0b104a0eb (patch) | |
| tree | 7fc2627f6de091658d31da4682a4e8c152c828c6 /Library/Homebrew/tab.rb | |
| parent | 4b1028c9e5ad04a129113d51087c0b11cc92d218 (diff) | |
| download | brew-e92a87179a2f90d8a43731b67adcd0b0b104a0eb.tar.bz2 | |
Use ternary instead of inline rescue
Diffstat (limited to 'Library/Homebrew/tab.rb')
| -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 => "", |
