diff options
| author | Zsolt Kozaroczy <[email protected]> | 2023-10-19 10:18:46 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-10-19 10:18:46 +0200 |
| commit | d6a3d5a65d070bf6083be1c01aa099b58d6e3464 (patch) | |
| tree | bc0d861d8e54b9d7c61eeebeaff44763f6983ea5 /lib/axlsx/drawing/axes.rb | |
| parent | e15ceb41bbcbdbeed33e304101cc66114ef1cf7d (diff) | |
| parent | 9e5bc61c60f8775150163d6d2da73d60083f0dbd (diff) | |
| download | caxlsx-d6a3d5a65d070bf6083be1c01aa099b58d6e3464.tar.gz caxlsx-d6a3d5a65d070bf6083be1c01aa099b58d6e3464.zip | |
Merge pull request #273 from tagliala/chore/fix-unused-block-argument
Fix Lint/UnusedBlockArgument offenses
Diffstat (limited to 'lib/axlsx/drawing/axes.rb')
| -rw-r--r-- | lib/axlsx/drawing/axes.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/axlsx/drawing/axes.rb b/lib/axlsx/drawing/axes.rb index 010fe8cd..f63ef95d 100644 --- a/lib/axlsx/drawing/axes.rb +++ b/lib/axlsx/drawing/axes.rb @@ -32,7 +32,7 @@ module Axlsx def to_xml_string(str = +'', options = {}) if options[:ids] # CatAxis must come first in the XML (for Microsoft Excel at least) - sorted = axes.sort_by { |name, axis| axis.is_a?(CatAxis) ? 0 : 1 } + sorted = axes.sort_by { |_name, axis| axis.is_a?(CatAxis) ? 0 : 1 } sorted.each { |axis| str << '<c:axId val="' << axis[1].id.to_s << '"/>' } else axes.each { |axis| axis[1].to_xml_string(str) } |
