diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2019-06-14 23:43:21 -0600 |
|---|---|---|
| committer | Dan Allen <dan.j.allen@gmail.com> | 2019-06-14 23:43:21 -0600 |
| commit | d2c32fb7210c697c8bd53b81169d14e164a34cbd (patch) | |
| tree | 3e10be082058d219607b7a69f2f2808def5d6135 /lib | |
| parent | b17563c49dad85a19e4ea009d17b6e0e8bcf1495 (diff) | |
fix warning for unused variable in parser
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/asciidoctor/parser.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/asciidoctor/parser.rb b/lib/asciidoctor/parser.rb index a5ac1abc..6ca9d238 100644 --- a/lib/asciidoctor/parser.rb +++ b/lib/asciidoctor/parser.rb @@ -2579,9 +2579,7 @@ class Parser attributes['role'] = (existing_role = attributes['role']).nil_or_empty? ? (parsed_attrs[:role].join ' ') : %(#{existing_role} #{parsed_attrs[:role].join ' '}) end - if parsed_attrs.key? :option - (opts = parsed_attrs[:option]).each {|opt| attributes[%(#{opt}-option)] = '' } - end + parsed_attrs[:option].each {|opt| attributes[%(#{opt}-option)] = '' } if parsed_attrs.key? :option parsed_style else |
