summaryrefslogtreecommitdiffhomepage
path: root/lib/axlsx/workbook/worksheet/data_bar.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/data_bar.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/data_bar.rb')
-rw-r--r--lib/axlsx/workbook/worksheet/data_bar.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/axlsx/workbook/worksheet/data_bar.rb b/lib/axlsx/workbook/worksheet/data_bar.rb
index 74158d98..95e54742 100644
--- a/lib/axlsx/workbook/worksheet/data_bar.rb
+++ b/lib/axlsx/workbook/worksheet/data_bar.rb
@@ -100,7 +100,7 @@ module Axlsx
# @param [Color|String] v The color object, or rgb string value to apply
def color=(v)
@color = v if v.is_a? Color
- self.color.rgb = v if v.is_a? String
+ color.rgb = v if v.is_a? String
end
# Serialize this object to an xml string
@@ -109,7 +109,7 @@ module Axlsx
def to_xml_string(str = +'')
serialized_tag('dataBar', str) do
value_objects.to_xml_string(str)
- self.color.to_xml_string(str)
+ color.to_xml_string(str)
end
end