From: Kevin Clark Date: Wed, 18 Jun 2008 01:06:29 +0000 (+0000) Subject: Stop using for _ in _ in Thrift::Protocol X-Git-Tag: 0.2.0~602 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=962b8af59d867ca4b28fe857a2e63a03a2b60a84;p=common%2Fthrift.git 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 --- diff --git a/lib/rb/lib/thrift/protocol.rb b/lib/rb/lib/thrift/protocol.rb index a1500c63..c4dd7624 100644 --- a/lib/rb/lib/thrift/protocol.rb +++ b/lib/rb/lib/thrift/protocol.rb @@ -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