diff options
| author | Geremia Taglialatela <[email protected]> | 2023-05-27 18:55:25 +0200 |
|---|---|---|
| committer | Geremia Taglialatela <[email protected]> | 2023-05-31 09:41:47 +0200 |
| commit | d9b42a4da1d35e5741da67dfca7dfc9a73518787 (patch) | |
| tree | b50a13988274298233f249eee776d67a8629b154 /lib/axlsx/drawing/title.rb | |
| parent | 8918a00eb0ff7b40240be5c94c4c245c95579acb (diff) | |
| download | caxlsx-d9b42a4da1d35e5741da67dfca7dfc9a73518787.tar.gz caxlsx-d9b42a4da1d35e5741da67dfca7dfc9a73518787.zip | |
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 |
