Skip to content
Snippets Groups Projects
Commit e92a8717 authored by Jack Nagel's avatar Jack Nagel
Browse files

Use ternary instead of inline rescue

parent 4b1028c9
No related branches found
No related tags found
No related merge requests found
...@@ -92,7 +92,7 @@ class Tab < OpenStruct ...@@ -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 => "",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment