File tree Expand file tree Collapse file tree 2 files changed +5
-12
lines changed Expand file tree Collapse file tree 2 files changed +5
-12
lines changed Original file line number Diff line number Diff line change @@ -2936,12 +2936,8 @@ def method_missing(command, *args)
29362936
29372937 FloatifyPairs =
29382938 lambda { |result |
2939- if result . respond_to? ( :each_slice )
2940- result . each_slice ( 2 ) . map do |member , score |
2941- [ member , Floatify . call ( score ) ]
2942- end
2943- else
2944- result
2939+ result . each_slice ( 2 ) . map do |member , score |
2940+ [ member , Floatify . call ( score ) ]
29452941 end
29462942 }
29472943
Original file line number Diff line number Diff line change @@ -191,13 +191,10 @@ def call_pipelined(commands)
191191 exception = nil
192192
193193 process ( commands ) do
194- result [ 0 ] = read
195-
196- @reconnect = false
197-
198- ( commands . size - 1 ) . times do |i |
194+ commands . size . times do |i |
199195 reply = read
200- result [ i + 1 ] = reply
196+ result [ i ] = reply
197+ @reconnect = false
201198 exception = reply if exception . nil? && reply . is_a? ( CommandError )
202199 end
203200 end
You can’t perform that action at this time.
0 commit comments