Use ternary instead of inline rescue
This commit is contained in:
parent
4b1028c9e5
commit
e92a87179a
@ -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 => "",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user