From eb41d05a093bc121dcb7c4e0337adb4db11b493d Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Wed, 18 Feb 2015 21:36:48 -0500 Subject: Use ternary instead of inline rescue --- Library/Homebrew/tab.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library') 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 => "", -- cgit v1.2.3