diff options
| author | Geremia Taglialatela <[email protected]> | 2023-05-27 19:11:11 +0200 |
|---|---|---|
| committer | Geremia Taglialatela <[email protected]> | 2023-05-31 09:42:51 +0200 |
| commit | fcfdfacba9ad18863fc73716c15fb3bd69fd3686 (patch) | |
| tree | ebe70fff87d3aba81ddf610e9637551096afe538 /lib | |
| parent | 8918a00eb0ff7b40240be5c94c4c245c95579acb (diff) | |
| download | caxlsx-fcfdfacba9ad18863fc73716c15fb3bd69fd3686.tar.gz caxlsx-fcfdfacba9ad18863fc73716c15fb3bd69fd3686.zip | |
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 |
