diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2021-05-12 04:16:22 -0600 |
|---|---|---|
| committer | Dan Allen <dan.j.allen@gmail.com> | 2021-05-12 04:16:22 -0600 |
| commit | c04e9dbe6de142af7875d62abbf11d3aade1cbca (patch) | |
| tree | 1731666772c2042bdc48602b69c8d208f5a2bc3c | |
| parent | 90bc75af6236a08ef85cc20838f974045942589c (diff) | |
remove unnecessary assignment in Reader#prepare_lines
| -rw-r--r-- | lib/asciidoctor/reader.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/asciidoctor/reader.rb b/lib/asciidoctor/reader.rb index 47b7d01b..0c15919f 100644 --- a/lib/asciidoctor/reader.rb +++ b/lib/asciidoctor/reader.rb @@ -580,8 +580,7 @@ class Reader # Returns A String Array of source lines. If the source data is an Array, this method returns a copy. def prepare_lines data, opts = {} if (normalize = opts[:normalize]) - trim_end = normalize == :chomp ? false : true - ::Array === data ? (Helpers.prepare_source_array data, trim_end) : (Helpers.prepare_source_string data, trim_end) + ::Array === data ? (Helpers.prepare_source_array data, normalize != :chomp) : (Helpers.prepare_source_string data, normalize != :chomp) elsif ::Array === data data.drop 0 elsif data |
