diff options
| author | Geremia Taglialatela <[email protected]> | 2023-05-22 18:58:38 +0200 |
|---|---|---|
| committer | Geremia Taglialatela <[email protected]> | 2023-05-22 18:58:38 +0200 |
| commit | 0f6062ef7cafb53396256c7b5b9cf5e715693637 (patch) | |
| tree | 41e6fe05ddbd068bd5dd031bd3ac8e08cbc08e71 /lib/axlsx/workbook/worksheet/page_setup.rb | |
| parent | 6752225bbb8a9eec905ec02a98f1a25a309c404a (diff) | |
| download | caxlsx-0f6062ef7cafb53396256c7b5b9cf5e715693637.tar.gz caxlsx-0f6062ef7cafb53396256c7b5b9cf5e715693637.zip | |
Fix Style/NonNilCheck offenses
There were 8 occurrences of `!nil?` and 4 of `!= nil`. This change will
standardize the usage of non-nil checks
Diffstat (limited to 'lib/axlsx/workbook/worksheet/page_setup.rb')
| -rw-r--r-- | lib/axlsx/workbook/worksheet/page_setup.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/axlsx/workbook/worksheet/page_setup.rb b/lib/axlsx/workbook/worksheet/page_setup.rb index 0bd0cdb8..6fc8ccba 100644 --- a/lib/axlsx/workbook/worksheet/page_setup.rb +++ b/lib/axlsx/workbook/worksheet/page_setup.rb @@ -225,8 +225,8 @@ module Axlsx # We treat any page set up that has a value set for fit_to_width or fit_to_height value as fit_to_page. # @return [Boolean] def fit_to_page? - # is there some better what to express this? - (fit_to_width != nil || fit_to_height != nil) + # is there some better way to express this? + (!fit_to_width.nil? || !fit_to_height.nil?) end # Serializes the page settings element. |
