Skip to content

Commit f24b961

Browse files
author
Emily Giurleo
committed
Fix issue introduced by cherry-picking RUBY-2119 without having previously cherry-picked RUBY-2149; remove second argument in result initializer
1 parent e361618 commit f24b961

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/mongo/operation/shared/executable.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,16 +47,15 @@ def result_class
4747
end
4848

4949
def get_result(server, client, options = {})
50-
result_class.new(*dispatch_message(server, client, options))
50+
result_class.new(dispatch_message(server, client, options))
5151
end
5252

5353
# Returns a Protocol::Message or nil as reply.
5454
def dispatch_message(server, client, options = {})
5555
server.with_connection do |connection|
5656
message = build_message(server)
5757
message = message.maybe_encrypt(server, client)
58-
reply = connection.dispatch([ message ], operation_id, client, options)
59-
[reply, connection.description]
58+
connection.dispatch([ message ], operation_id, client, options)
6059
end
6160
end
6261

0 commit comments

Comments
 (0)