summaryrefslogtreecommitdiffhomepage
path: root/lib/axlsx/workbook/worksheet/table.rb
diff options
context:
space:
mode:
authorGeremia Taglialatela <[email protected]>2023-06-05 17:14:59 +0200
committerGeremia Taglialatela <[email protected]>2023-06-05 17:27:41 +0200
commitb0fb7d1f19afbc933b3aa445f5d95d4b6bef9f6b (patch)
treea50309ea3b0db8a2de8d3f6985ba29de3b826f5a /lib/axlsx/workbook/worksheet/table.rb
parent0cc60e3eb08e11542612871e2e15350ed07fff06 (diff)
downloadcaxlsx-b0fb7d1f19afbc933b3aa445f5d95d4b6bef9f6b.tar.gz
caxlsx-b0fb7d1f19afbc933b3aa445f5d95d4b6bef9f6b.zip
Prefer `Kernel#format` to `String#%`
This commit fixes cases that cannot be detected by RuboCop Ref: https://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Style/FormatString
Diffstat (limited to 'lib/axlsx/workbook/worksheet/table.rb')
-rw-r--r--lib/axlsx/workbook/worksheet/table.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/axlsx/workbook/worksheet/table.rb b/lib/axlsx/workbook/worksheet/table.rb
index 4221925d..2bfb64eb 100644
--- a/lib/axlsx/workbook/worksheet/table.rb
+++ b/lib/axlsx/workbook/worksheet/table.rb
@@ -44,7 +44,7 @@ module Axlsx
# The part name for this table
# @return [String]
def pn
- TABLE_PN % (index + 1)
+ format(TABLE_PN, index + 1)
end
# The relationship id for this table.