diff options
| author | Zsolt Kozaroczy <[email protected]> | 2023-05-22 10:33:45 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-05-22 10:33:45 +0200 |
| commit | 0f812ee216076a4c713f6cadb0751bac45f6b9da (patch) | |
| tree | 95549c3a1899db8791268a71d4a33f5b9ce7847f /lib/axlsx/stylesheet/styles.rb | |
| parent | 56ff466673b8aff9a6508e29ebfaf4ee21f5fae9 (diff) | |
| parent | 611b57cdd44f3f5e91394c699ad98b7c05330a2e (diff) | |
| download | caxlsx-0f812ee216076a4c713f6cadb0751bac45f6b9da.tar.gz caxlsx-0f812ee216076a4c713f6cadb0751bac45f6b9da.zip | |
Merge pull request #242 from tagliala/chore/fix-minor-safe-offenses
Remove minor safe offenses
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 f67c711a..625f6a02 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 |
