From 514fc8c2f334f0e859c5512a3766775daed04847 Mon Sep 17 00:00:00 2001 From: Geremia Taglialatela Date: Thu, 25 May 2023 12:12:39 +0200 Subject: Remove duplicate check Axlsx::Row is now an Array, so it is possible to remove the extra duplicate branch --- lib/axlsx/workbook/worksheet/merged_cells.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'lib/axlsx/workbook/worksheet') 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 -- cgit v1.2.3