diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2023-04-26 01:12:49 -0600 |
|---|---|---|
| committer | Dan Allen <dan.j.allen@gmail.com> | 2023-04-26 01:13:27 -0600 |
| commit | 0ca66dcacd0dd19cd5b3a1906285ddbfec1d4d91 (patch) | |
| tree | 3f24f6ef1f404c7dcc66bc22b45b928a77d97b75 | |
| parent | 384ccd8492a02b0bb7c56d1e18967c79f63db466 (diff) | |
combine condition with next keyword for clarity when cataloging inline anchors
| -rw-r--r-- | lib/asciidoctor/parser.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/asciidoctor/parser.rb b/lib/asciidoctor/parser.rb index 8f989c16..2f901818 100644 --- a/lib/asciidoctor/parser.rb +++ b/lib/asciidoctor/parser.rb @@ -1165,8 +1165,8 @@ class Parser if reftext.include? ']' reftext = reftext.gsub '\]', ']' reftext = document.sub_attributes reftext if reftext.include? ATTR_REF_HEAD - elsif (reftext.include? ATTR_REF_HEAD) && (reftext = document.sub_attributes reftext).empty? - next + elsif reftext.include? ATTR_REF_HEAD + next if (reftext = document.sub_attributes reftext).empty? end end end |
