diff options
| author | Geremia Taglialatela <[email protected]> | 2023-05-25 12:12:39 +0200 |
|---|---|---|
| committer | Geremia Taglialatela <[email protected]> | 2023-05-25 12:12:39 +0200 |
| commit | 514fc8c2f334f0e859c5512a3766775daed04847 (patch) | |
| tree | e43a7baf4177224942a3e39a7f611585d0e79603 /lib/axlsx | |
| parent | 63a6edf1e191cf91fb80717ebae67c78af0d7db5 (diff) | |
| download | caxlsx-514fc8c2f334f0e859c5512a3766775daed04847.tar.gz caxlsx-514fc8c2f334f0e859c5512a3766775daed04847.zip | |
Remove duplicate check
Axlsx::Row is now an Array, so it is possible to remove the extra
duplicate branch
Diffstat (limited to 'lib/axlsx')
| -rw-r--r-- | lib/axlsx/workbook/worksheet/merged_cells.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/axlsx/workbook/worksheet/merged_cells.rb b/lib/axlsx/workbook/worksheet/merged_cells.rb index c0ca1ebe..c3fb6dde 100644 --- a/lib/axlsx/workbook/worksheet/merged_cells.rb +++ b/lib/axlsx/workbook/worksheet/merged_cells.rb @@ -12,7 +12,7 @@ module Axlsx end # adds cells to the merged cells collection - # @param [Array||String] cells The cells to add to the merged cells + # @param [Array|String] cells The cells to add to the merged cells # collection. This can be an array of actual cells or a string style # range like 'A1:C1' def add(cells) @@ -20,8 +20,6 @@ module Axlsx cells elsif cells.is_a?(Array) Axlsx::cell_range(cells, false) - elsif cells.is_a?(Row) - Axlsx::cell_range(cells, false) end end |
