Skip to content

Commit c8d80fd

Browse files
committed
Use map
rubocop recommended this (Style/MapIntoArray).
1 parent 8d11f28 commit c8d80fd

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

test/test_decoder.rb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -211,11 +211,9 @@ def test_uint128
211211
end
212212

213213
def validate_type_decoding(type, tests)
214-
values = []
215-
tests.each do |input, expected|
216-
values << check_decoding(type, input, expected)
214+
tests.map do |input, expected|
215+
check_decoding(type, input, expected)
217216
end
218-
values
219217
end
220218

221219
def check_decoding(type, input, expected, name = nil)

0 commit comments

Comments
 (0)