summaryrefslogtreecommitdiffhomepage
path: root/lib/axlsx/stylesheet/styles.rb
diff options
context:
space:
mode:
authorGeremia Taglialatela <[email protected]>2023-05-20 17:52:35 +0200
committerGeremia Taglialatela <[email protected]>2023-05-20 17:52:35 +0200
commit611b57cdd44f3f5e91394c699ad98b7c05330a2e (patch)
tree3ac799c34fdc418ae31145feb1edf9d363b1d69a /lib/axlsx/stylesheet/styles.rb
parent6a4b82def2e94b4811c38c37e606d426710d1e6c (diff)
downloadcaxlsx-611b57cdd44f3f5e91394c699ad98b7c05330a2e.tar.gz
caxlsx-611b57cdd44f3f5e91394c699ad98b7c05330a2e.zip
Remove minor safe offenses
- Style/RaiseArgs - Style/RedundantCondition - Style/RedundantReturn - Style/SelfAssignment - Style/SoleNestedConditional
Diffstat (limited to 'lib/axlsx/stylesheet/styles.rb')
-rw-r--r--lib/axlsx/stylesheet/styles.rb10
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/axlsx/stylesheet/styles.rb b/lib/axlsx/stylesheet/styles.rb
index e8263b45..dc44c2eb 100644
--- a/lib/axlsx/stylesheet/styles.rb
+++ b/lib/axlsx/stylesheet/styles.rb
@@ -278,11 +278,9 @@ module Axlsx
# Add styles to style_index cache for re-use
style_index[xf_index] = raw_style
- return xf_index
+ xf_index
else
- dxf_index = (dxfs << style)
-
- return dxf_index
+ dxfs << style
end
end
@@ -457,9 +455,9 @@ module Axlsx
end
if options[:type] == :dxf
- return border
+ border
else
- return borders << border
+ borders << border
end
end