diff options
| author | Zsolt Kozaroczy <[email protected]> | 2023-05-31 10:55:02 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-05-31 10:55:02 +0200 |
| commit | bdb23807bf0f516d2cf65636f54b8bb912476d01 (patch) | |
| tree | af1310691b2c8646e8f1de632c9aa13e3692979a /lib/axlsx/drawing/title.rb | |
| parent | 3aa92cd2be4b535d1b21d2ba02f0e7660ccc6a05 (diff) | |
| parent | d9b42a4da1d35e5741da67dfca7dfc9a73518787 (diff) | |
| download | caxlsx-bdb23807bf0f516d2cf65636f54b8bb912476d01.tar.gz caxlsx-bdb23807bf0f516d2cf65636f54b8bb912476d01.zip | |
Merge pull request #265 from tagliala/chore/fix-conditional-assignment-offenses
Fix Style/ConditionalAssignment offenses
Diffstat (limited to 'lib/axlsx/drawing/title.rb')
| -rw-r--r-- | lib/axlsx/drawing/title.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/axlsx/drawing/title.rb b/lib/axlsx/drawing/title.rb index 2e4037fb..84687a32 100644 --- a/lib/axlsx/drawing/title.rb +++ b/lib/axlsx/drawing/title.rb @@ -20,11 +20,11 @@ module Axlsx def initialize(title = "", title_size = "") self.cell = title if title.is_a?(Cell) self.text = title.to_s unless title.is_a?(Cell) - if title_size.to_s.empty? - self.text_size = "1600" - else - self.text_size = title_size.to_s - end + self.text_size = if title_size.to_s.empty? + "1600" + else + title_size.to_s + end end # @see text |
