From e92a87179a2f90d8a43731b67adcd0b0b104a0eb Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Wed, 18 Feb 2015 21:36:48 -0500 Subject: [PATCH] Use ternary instead of inline rescue --- Library/Homebrew/tab.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/tab.rb b/Library/Homebrew/tab.rb index 2415b843b2..e88bed96b3 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 => "",