diff options
| author | Zsolt Kozaroczy <[email protected]> | 2023-06-05 11:22:54 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-06-05 11:22:54 +0200 |
| commit | 8e496968872c18dbeb7df43435a43758d069ef2a (patch) | |
| tree | 0129c25512855d16be4e09a0f16a40a09765f8dc /lib/axlsx/package.rb | |
| parent | d9857fee81eb57935848039c6548d81f3339d728 (diff) | |
| parent | 4195130bb4633bc667aeedd297dc56d7632a5810 (diff) | |
| download | caxlsx-8e496968872c18dbeb7df43435a43758d069ef2a.tar.gz caxlsx-8e496968872c18dbeb7df43435a43758d069ef2a.zip | |
Merge pull request #274 from tagliala/chore/fix-negated-if-offenses
Fix negated if offenses
Diffstat (limited to 'lib/axlsx/package.rb')
| -rw-r--r-- | lib/axlsx/package.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/axlsx/package.rb b/lib/axlsx/package.rb index 295ff2eb..4597efc0 100644 --- a/lib/axlsx/package.rb +++ b/lib/axlsx/package.rb @@ -101,7 +101,7 @@ module Axlsx # s = p.to_stream() # File.open('example_streamed.xlsx', 'wb') { |f| f.write(s.read) } def serialize(output, options = {}, secondary_options = nil) - if !workbook.styles_applied + unless workbook.styles_applied workbook.apply_styles end @@ -126,7 +126,7 @@ module Axlsx # @param [Boolean] confirm_valid Validate the package prior to serialization. # @return [StringIO|Boolean] False if confirm_valid and validation errors exist. rewound string IO if not. def to_stream(confirm_valid = false) - if !workbook.styles_applied + unless workbook.styles_applied workbook.apply_styles end |
