diff options
| author | Geremia Taglialatela <[email protected]> | 2023-05-15 21:51:40 +0200 |
|---|---|---|
| committer | Geremia Taglialatela <[email protected]> | 2023-05-15 21:51:40 +0200 |
| commit | e85801445f278a81d1e3a2901c4093e8f9d3e38a (patch) | |
| tree | 5ccd5e755c71a5466d33f250040543232bd2966a | |
| parent | 3b9ac17d8e4dc8b315ac307ffad6f2aa0cb96741 (diff) | |
| download | caxlsx-e85801445f278a81d1e3a2901c4093e8f9d3e38a.tar.gz caxlsx-e85801445f278a81d1e3a2901c4093e8f9d3e38a.zip | |
Fix Performance/StringIdentifierArgument offense
| -rw-r--r-- | .rubocop_todo.yml | 5 | ||||
| -rw-r--r-- | lib/axlsx/drawing/pic.rb | 2 |
2 files changed, 1 insertions, 6 deletions
diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 2385ecb2..57bf7265 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -136,11 +136,6 @@ Performance/RegexpMatch: - 'lib/axlsx/workbook/worksheet/cell.rb' # This cop supports safe autocorrection (--autocorrect). -Performance/StringIdentifierArgument: - Exclude: - - 'lib/axlsx/drawing/pic.rb' - -# This cop supports safe autocorrection (--autocorrect). # Configuration parameters: EnforcedStyle. # SupportedStyles: separated, grouped Style/AccessorGrouping: diff --git a/lib/axlsx/drawing/pic.rb b/lib/axlsx/drawing/pic.rb index 77a051c3..fa08bd83 100644 --- a/lib/axlsx/drawing/pic.rb +++ b/lib/axlsx/drawing/pic.rb @@ -239,7 +239,7 @@ module Axlsx def swap_anchor(new_anchor) new_anchor.drawing.anchors.delete(new_anchor) @anchor.drawing.anchors[@anchor.drawing.anchors.index(@anchor)] = new_anchor - new_anchor.instance_variable_set "@object", @anchor.object + new_anchor.instance_variable_set :@object, @anchor.object @anchor = new_anchor end end |
