Use ternary instead of inline rescue

This commit is contained in:
Jack Nagel 2015-02-18 21:36:48 -05:00
parent 4b1028c9e5
commit e92a87179a

View File

@ -92,7 +92,7 @@ class Tab < OpenStruct
def self.dummy_tab f=nil def self.dummy_tab f=nil
attributes = { attributes = {
:used_options => [], :used_options => [],
:unused_options => (f.options.as_flags rescue []), :unused_options => f ? f.options.as_flags : [],
:built_as_bottle => false, :built_as_bottle => false,
:poured_from_bottle => false, :poured_from_bottle => false,
:tapped_from => "", :tapped_from => "",