diff options
| author | Geremia Taglialatela <[email protected]> | 2023-06-05 16:49:23 +0200 |
|---|---|---|
| committer | Geremia Taglialatela <[email protected]> | 2023-06-05 17:27:41 +0200 |
| commit | 0cc60e3eb08e11542612871e2e15350ed07fff06 (patch) | |
| tree | ae63495552175e26ab6be3aefe190a7e5ab657a9 /lib/axlsx/drawing/chart.rb | |
| parent | 7fdbd745a2c914001a2174aeadae26b9c970ffaf (diff) | |
| download | caxlsx-0cc60e3eb08e11542612871e2e15350ed07fff06.tar.gz caxlsx-0cc60e3eb08e11542612871e2e15350ed07fff06.zip | |
Fix Style/RedundantInterpolation offenses
`%` is an operation on `String` that will return a new `String`, so
the interpolation is redundant
Also adds a missing spec on PivotTable#rels_pn
```
IPS:
uninterpolated: 4045715.7 i/s
interpolated: 2359775.6 i/s - 1.71x (± 0.00) slower
Memory:
uninterpolated: 160 allocated
interpolated: 232 allocated - 1.45x more
```
Diffstat (limited to 'lib/axlsx/drawing/chart.rb')
| -rw-r--r-- | lib/axlsx/drawing/chart.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/axlsx/drawing/chart.rb b/lib/axlsx/drawing/chart.rb index 9f59dc6a..6b3acab1 100644 --- a/lib/axlsx/drawing/chart.rb +++ b/lib/axlsx/drawing/chart.rb @@ -124,7 +124,7 @@ module Axlsx # The part name for this chart # @return [String] def pn - "#{CHART_PN % (index + 1)}" + CHART_PN % (index + 1) end # The title object for the chart. |
