summaryrefslogtreecommitdiffhomepage
path: root/lib/axlsx/workbook/worksheet
diff options
context:
space:
mode:
authorGeremia Taglialatela <[email protected]>2023-04-07 23:48:27 +0200
committerGeremia Taglialatela <[email protected]>2023-04-07 23:48:27 +0200
commit1534eba0300a256a827990ba12f3297c5eda3514 (patch)
tree21d63d7a5f056b2246a0d6ecac3dc41457ddf687 /lib/axlsx/workbook/worksheet
parentfc73023ea783ff7fdeb11ac903baa9142c98cd1c (diff)
downloadcaxlsx-1534eba0300a256a827990ba12f3297c5eda3514.tar.gz
caxlsx-1534eba0300a256a827990ba12f3297c5eda3514.zip
Fix Layout/SpaceAroundBlockParameters offenses
``` rubocop --only Layout/SpaceAroundBlockParameters -a ```
Diffstat (limited to 'lib/axlsx/workbook/worksheet')
-rw-r--r--lib/axlsx/workbook/worksheet/row.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/axlsx/workbook/worksheet/row.rb b/lib/axlsx/workbook/worksheet/row.rb
index 376719ce..ee5b9509 100644
--- a/lib/axlsx/workbook/worksheet/row.rb
+++ b/lib/axlsx/workbook/worksheet/row.rb
@@ -105,14 +105,14 @@ module Axlsx
# sets the color for every cell in this row
def color=(color)
- each_with_index do | cell, index |
+ each_with_index do |cell, index|
cell.color = color.is_a?(Array) ? color[index] : color
end
end
# sets the style for every cell in this row
def style=(style)
- each_with_index do | cell, index |
+ each_with_index do |cell, index|
cell.style = style.is_a?(Array) ? style[index] : style
end
end