summaryrefslogtreecommitdiffhomepage
path: root/lib/axlsx/stylesheet
diff options
context:
space:
mode:
authorZsolt Kozaroczy <[email protected]>2023-06-05 11:22:54 +0200
committerGitHub <[email protected]>2023-06-05 11:22:54 +0200
commit8e496968872c18dbeb7df43435a43758d069ef2a (patch)
tree0129c25512855d16be4e09a0f16a40a09765f8dc /lib/axlsx/stylesheet
parentd9857fee81eb57935848039c6548d81f3339d728 (diff)
parent4195130bb4633bc667aeedd297dc56d7632a5810 (diff)
downloadcaxlsx-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/stylesheet')
-rw-r--r--lib/axlsx/stylesheet/styles.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/axlsx/stylesheet/styles.rb b/lib/axlsx/stylesheet/styles.rb
index e518d21e..6356d9e6 100644
--- a/lib/axlsx/stylesheet/styles.rb
+++ b/lib/axlsx/stylesheet/styles.rb
@@ -381,7 +381,7 @@ module Axlsx
end
validate_border_hash = ->(val) {
- if !(val.key?(:style) && val.key?(:color))
+ unless val.key?(:style) && val.key?(:color)
raise ArgumentError, (ERR_INVALID_BORDER_OPTIONS % options[:border])
end
}
@@ -439,7 +439,7 @@ module Axlsx
next
end
- if !edge_b_opts.empty?
+ unless edge_b_opts.empty?
if base_border_opts.empty?
validate_border_hash.call(edge_b_opts)
end