diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2024-05-14 13:15:25 -0600 |
|---|---|---|
| committer | Dan Allen <dan.j.allen@gmail.com> | 2024-05-14 13:15:25 -0600 |
| commit | 3c4e3ea6a4b096b919caa1b27bed7ff944c7a3a2 (patch) | |
| tree | 2e1c4e8fc48475c10a7541a05c8f2b5263231e96 | |
| parent | 67b6fbf08cd8eb1106ac7277265f55f3f28cdc24 (diff) | |
simplify return nil to bare return
| -rw-r--r-- | lib/asciidoctor/reader.rb | 2 | ||||
| -rw-r--r-- | lib/asciidoctor/table.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/asciidoctor/reader.rb b/lib/asciidoctor/reader.rb index 23000dda..26075585 100644 --- a/lib/asciidoctor/reader.rb +++ b/lib/asciidoctor/reader.rb @@ -809,7 +809,7 @@ class PreprocessorReader < Reader if line.empty? if @skipping shift - return nil + return end @look_ahead += 1 return line diff --git a/lib/asciidoctor/table.rb b/lib/asciidoctor/table.rb index 86dfd673..cc95a152 100644 --- a/lib/asciidoctor/table.rb +++ b/lib/asciidoctor/table.rb @@ -664,7 +664,7 @@ class Table::ParserContext # QUESTION is this right for cells that span columns? unless (column = @table.columns[@current_row.size]) logger.error message_with_context 'dropping cell because it exceeds specified number of columns', source_location: @reader.cursor_before_mark - return nil + return end end |
