diff options
| author | Zsolt Kozaroczy <[email protected]> | 2023-06-05 18:40:47 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-06-05 18:40:47 +0200 |
| commit | 2965ebd4c719ad34a75e70cb1640e94093c8c763 (patch) | |
| tree | a50309ea3b0db8a2de8d3f6985ba29de3b826f5a /lib/axlsx/stylesheet | |
| parent | a2eeaeefca8deb3d26f3f8dc62976fe6bf1dafcf (diff) | |
| parent | b0fb7d1f19afbc933b3aa445f5d95d4b6bef9f6b (diff) | |
| download | caxlsx-2965ebd4c719ad34a75e70cb1640e94093c8c763.tar.gz caxlsx-2965ebd4c719ad34a75e70cb1640e94093c8c763.zip | |
Merge pull request #277 from tagliala/chore/fix-format-string-offenses
Fix format string offenses
Diffstat (limited to 'lib/axlsx/stylesheet')
| -rw-r--r-- | lib/axlsx/stylesheet/styles.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/axlsx/stylesheet/styles.rb b/lib/axlsx/stylesheet/styles.rb index 6356d9e6..bdda36c7 100644 --- a/lib/axlsx/stylesheet/styles.rb +++ b/lib/axlsx/stylesheet/styles.rb @@ -370,7 +370,7 @@ module Axlsx if options[:border].is_a?(Integer) if options[:border] >= borders.size - raise ArgumentError, (ERR_INVALID_BORDER_ID % options[:border]) + raise ArgumentError, format(ERR_INVALID_BORDER_ID, options[:border]) end if options[:type] == :dxf @@ -382,7 +382,7 @@ module Axlsx validate_border_hash = ->(val) { unless val.key?(:style) && val.key?(:color) - raise ArgumentError, (ERR_INVALID_BORDER_OPTIONS % options[:border]) + raise ArgumentError, format(ERR_INVALID_BORDER_OPTIONS, options[:border]) end } |
