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/workbook/worksheet/border_creator.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/workbook/worksheet/border_creator.rb')
| -rw-r--r-- | lib/axlsx/workbook/worksheet/border_creator.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/axlsx/workbook/worksheet/border_creator.rb b/lib/axlsx/workbook/worksheet/border_creator.rb index 9abaded5..04a9cfac 100644 --- a/lib/axlsx/workbook/worksheet/border_creator.rb +++ b/lib/axlsx/workbook/worksheet/border_creator.rb @@ -17,7 +17,7 @@ module Axlsx else @edges = @edges.map { |x| x&.to_sym }.uniq - if !(@edges - Axlsx::Border::EDGES).empty? + unless (@edges - Axlsx::Border::EDGES).empty? raise ArgumentError, "Invalid edges provided, #{edges}" end end |
