From 5915a57cd7a7260fb3b359c26eed4ab4d965d810 Mon Sep 17 00:00:00 2001 From: Geremia Taglialatela Date: Wed, 3 May 2023 16:09:37 +0200 Subject: Fix Style/MapToHash offense (unsafe) --- test/drawing/tc_d_lbls.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/drawing/tc_d_lbls.rb b/test/drawing/tc_d_lbls.rb index 97011f6d..ef391824 100644 --- a/test/drawing/tc_d_lbls.rb +++ b/test/drawing/tc_d_lbls.rb @@ -20,7 +20,7 @@ class TestDLbls < Test::Unit::TestCase end def test_initialization_with_optoins - options_hash = @boolean_attributes.map { |name| [name, true] }.to_h + options_hash = @boolean_attributes.to_h { |name| [name, true] } d_lbls = Axlsx::DLbls.new(Axlsx::Pie3DChart, options_hash.merge({ :d_lbl_pos => :t })) -- cgit v1.2.3