summaryrefslogtreecommitdiff
path: root/lib/drb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/drb')
-rw-r--r--lib/drb/drb.rb4
-rw-r--r--lib/drb/invokemethod.rb2
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/drb/drb.rb b/lib/drb/drb.rb
index 84a21440ed6..cacca145e9f 100644
--- a/lib/drb/drb.rb
+++ b/lib/drb/drb.rb
@@ -820,7 +820,7 @@ module DRb
# Open a client connection to +uri+ using configuration +config+.
def self.open(uri, config)
- host, port, option = parse_uri(uri)
+ host, port, = parse_uri(uri)
host.untaint
port.untaint
soc = TCPSocket.open(host, port)
@@ -852,7 +852,7 @@ module DRb
# configuration +config+.
def self.open_server(uri, config)
uri = 'druby://:0' unless uri
- host, port, opt = parse_uri(uri)
+ host, port, _ = parse_uri(uri)
config = {:tcp_original_host => host}.update(config)
if host.size == 0
host = getservername
diff --git a/lib/drb/invokemethod.rb b/lib/drb/invokemethod.rb
index 220d0ad68dc..5a231ed67b3 100644
--- a/lib/drb/invokemethod.rb
+++ b/lib/drb/invokemethod.rb
@@ -7,7 +7,7 @@ module DRb
if x.size == 1 && x[0].class == Array
x[0] = DRbArray.new(x[0])
end
- block_value = @block.call(*x)
+ @block.call(*x)
end
def perform_with_block