diff options
| author | Zsolt Kozaroczy <[email protected]> | 2023-05-31 10:55:38 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-05-31 10:55:38 +0200 |
| commit | 7c5dbbe6661ac13a3f02925ef06eccb21edaa859 (patch) | |
| tree | d6103b94f42f69f52c28e5413b02d4f7d3658ce6 /lib | |
| parent | bdb23807bf0f516d2cf65636f54b8bb912476d01 (diff) | |
| parent | fcfdfacba9ad18863fc73716c15fb3bd69fd3686 (diff) | |
| download | caxlsx-7c5dbbe6661ac13a3f02925ef06eccb21edaa859.tar.gz caxlsx-7c5dbbe6661ac13a3f02925ef06eccb21edaa859.zip | |
Merge pull request #266 from tagliala/chore/fix-yoda-condition-offense
Fix Style/YodaCondition offense
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/axlsx/workbook/worksheet/col.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/axlsx/workbook/worksheet/col.rb b/lib/axlsx/workbook/worksheet/col.rb index ff942d32..38ac7454 100644 --- a/lib/axlsx/workbook/worksheet/col.rb +++ b/lib/axlsx/workbook/worksheet/col.rb @@ -88,7 +88,7 @@ module Axlsx # @see Col#outline def outline_level=(v) Axlsx.validate_unsigned_numeric(v) - raise ArgumentError, 'outlineLevel must be between 0 and 7' unless 0 <= v && v <= 7 + raise ArgumentError, 'outlineLevel must be between 0 and 7' unless v >= 0 && v <= 7 @outline_level = v end |
