From 5e15911ca1ab4dd1663bb45156770ff0c14efe0b Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Wed, 12 Jul 2017 03:09:01 -0600 Subject: remove qualified method reference in parse_blocks; consolidate --- lib/asciidoctor/parser.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/asciidoctor/parser.rb b/lib/asciidoctor/parser.rb index e859baab..37a62091 100644 --- a/lib/asciidoctor/parser.rb +++ b/lib/asciidoctor/parser.rb @@ -1108,9 +1108,8 @@ class Parser # # Returns nothing. def self.parse_blocks(reader, parent) - while reader.has_more_lines? - block = Parser.next_block(reader, parent) - parent << block if block + while (block = next_block reader, parent) + parent << block end end -- cgit v1.2.3