diff options
Diffstat (limited to 'lib/axlsx/workbook/worksheet/data_bar.rb')
| -rw-r--r-- | lib/axlsx/workbook/worksheet/data_bar.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/axlsx/workbook/worksheet/data_bar.rb b/lib/axlsx/workbook/worksheet/data_bar.rb index 482bd029..27218423 100644 --- a/lib/axlsx/workbook/worksheet/data_bar.rb +++ b/lib/axlsx/workbook/worksheet/data_bar.rb @@ -117,11 +117,11 @@ module Axlsx def initialize_cfvos(cfvos) self.class.default_cfvos.each_with_index.map do |default, index| - if index < cfvos.size - value_objects << Cfvo.new(default.merge(cfvos[index])) - else - value_objects << Cfvo.new(default) - end + value_objects << if index < cfvos.size + Cfvo.new(default.merge(cfvos[index])) + else + Cfvo.new(default) + end end end end |
