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:28:55 -0600 |
| commit | 73e55097f494037964bc13c8091020db0d55fff9 (patch) | |
| tree | 2fb2d34973200f5c1b2ec775394b12bcc6b034ff | |
| parent | c58ad5ab87a281c42c59dd097f24378dfca0e0d1 (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 0596db15..8026770f 100644 --- a/lib/asciidoctor/parser.rb +++ b/lib/asciidoctor/parser.rb @@ -1168,8 +1168,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 |
