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/drawing/d_lbls.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/drawing/d_lbls.rb')
| -rw-r--r-- | lib/axlsx/drawing/d_lbls.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/axlsx/drawing/d_lbls.rb b/lib/axlsx/drawing/d_lbls.rb index 8965599c..7e3936cc 100644 --- a/lib/axlsx/drawing/d_lbls.rb +++ b/lib/axlsx/drawing/d_lbls.rb @@ -76,7 +76,7 @@ module Axlsx str << '<c:dLbls>' instance_vals = Axlsx.instance_values_for(self) %w(d_lbl_pos show_legend_key show_val show_cat_name show_ser_name show_percent show_bubble_size show_leader_lines).each do |key| - next unless instance_vals.key?(key) && instance_vals[key] != nil + next unless instance_vals.key?(key) && !instance_vals[key].nil? str << "<c:#{Axlsx::camel(key, false)} val='#{instance_vals[key]}' />" end |
