diff options
| author | Geremia Taglialatela <[email protected]> | 2023-05-20 17:52:35 +0200 |
|---|---|---|
| committer | Geremia Taglialatela <[email protected]> | 2023-05-20 17:52:35 +0200 |
| commit | 611b57cdd44f3f5e91394c699ad98b7c05330a2e (patch) | |
| tree | 3ac799c34fdc418ae31145feb1edf9d363b1d69a /lib/axlsx/stylesheet/styles.rb | |
| parent | 6a4b82def2e94b4811c38c37e606d426710d1e6c (diff) | |
| download | caxlsx-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.rb | 10 |
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 |
