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)
2936
2936
2937
2937
FloatifyPairs =
2938
2938
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 ) ]
2945
2941
end
2946
2942
}
2947
2943
Original file line number Diff line number Diff line change @@ -191,13 +191,10 @@ def call_pipelined(commands)
191
191
exception = nil
192
192
193
193
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 |
199
195
reply = read
200
- result [ i + 1 ] = reply
196
+ result [ i ] = reply
197
+ @reconnect = false
201
198
exception = reply if exception . nil? && reply . is_a? ( CommandError )
202
199
end
203
200
end
You can’t perform that action at this time.
0 commit comments