mirror of
https://github.com/valitydev/thrift.git
synced 2024-11-07 18:58:51 +00:00
Stop using for _ in _ in Thrift::Protocol
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668947 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
dc39973565
commit
962b8af59d
@ -233,20 +233,20 @@ module Thrift
|
||||
read_struct_end
|
||||
elsif type === Types::MAP
|
||||
ktype, vtype, size = read_map_begin
|
||||
for i in 1..size
|
||||
size.times do
|
||||
skip(ktype)
|
||||
skip(vtype)
|
||||
end
|
||||
read_map_end
|
||||
elsif type === Types::SET
|
||||
etype, size = read_set_begin
|
||||
for i in 1..size
|
||||
size.times do
|
||||
skip(etype)
|
||||
end
|
||||
read_set_end
|
||||
elsif type === Types::LIST
|
||||
etype, size = read_list_begin
|
||||
for i in 1..size
|
||||
size.times do
|
||||
skip(etype)
|
||||
end
|
||||
read_list_end
|
||||
|
Loading…
Reference in New Issue
Block a user