summaryrefslogtreecommitdiffhomepage
path: root/lib/axlsx/stylesheet/xf.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/stylesheet/xf.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/stylesheet/xf.rb')
-rw-r--r--lib/axlsx/stylesheet/xf.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/axlsx/stylesheet/xf.rb b/lib/axlsx/stylesheet/xf.rb
index 6d4aab66..0ea97f20 100644
--- a/lib/axlsx/stylesheet/xf.rb
+++ b/lib/axlsx/stylesheet/xf.rb
@@ -138,8 +138,8 @@ module Axlsx
str << '<xf '
serialized_attributes str
str << '>'
- alignment.to_xml_string(str) if self.alignment
- protection.to_xml_string(str) if self.protection
+ alignment.to_xml_string(str) if alignment
+ protection.to_xml_string(str) if protection
str << '</xf>'
end
end