summaryrefslogtreecommitdiffhomepage
path: root/lib/axlsx/workbook/worksheet/rich_text_run.rb
diff options
context:
space:
mode:
authorGeremia Taglialatela <[email protected]>2023-06-15 09:30:29 +0200
committerGeremia Taglialatela <[email protected]>2023-06-15 09:30:29 +0200
commit988c79b8d7602c67f7b761269383129609cf63a7 (patch)
tree036d742dc625ea43028326d869a06e35ef9952b1 /lib/axlsx/workbook/worksheet/rich_text_run.rb
parente74c75b95d39fb51512387031e79f50e52a5874a (diff)
downloadcaxlsx-988c79b8d7602c67f7b761269383129609cf63a7.tar.gz
caxlsx-988c79b8d7602c67f7b761269383129609cf63a7.zip
Fix redundant self offenses
No performance gain, this can be seen as a cosmetic change to have shorter lines
Diffstat (limited to 'lib/axlsx/workbook/worksheet/rich_text_run.rb')
-rw-r--r--lib/axlsx/workbook/worksheet/rich_text_run.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/axlsx/workbook/worksheet/rich_text_run.rb b/lib/axlsx/workbook/worksheet/rich_text_run.rb
index 4934523d..b2cd8a51 100644
--- a/lib/axlsx/workbook/worksheet/rich_text_run.rb
+++ b/lib/axlsx/workbook/worksheet/rich_text_run.rb
@@ -199,7 +199,7 @@ module Axlsx
return unless INLINE_STYLES.include?(attr.to_sym)
Axlsx.send(validator, value) unless validator.nil?
- self.instance_variable_set :"@#{attr}", value
+ instance_variable_set :"@#{attr}", value
end
# Serializes the RichTextRun