From 265f3d32126cf2a31587a6021494f528bbdf8171 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 9 Nov 2011 10:06:39 +0000 Subject: fix warnings, oops Found with 1.9.3 --- lib/mogilefs/backend.rb | 1 - test/test_mogilefs_integration_large_pipe.rb | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/mogilefs/backend.rb b/lib/mogilefs/backend.rb index 7e984e5..b0d2f5b 100644 --- a/lib/mogilefs/backend.rb +++ b/lib/mogilefs/backend.rb @@ -164,7 +164,6 @@ class MogileFS::Backend # Performs the +cmd+ request with +args+. def do_request(cmd, args, idempotent = false) - response = nil request = make_request cmd, args @mutex.synchronize do begin diff --git a/test/test_mogilefs_integration_large_pipe.rb b/test/test_mogilefs_integration_large_pipe.rb index afc252e..49b9397 100644 --- a/test/test_mogilefs_integration_large_pipe.rb +++ b/test/test_mogilefs_integration_large_pipe.rb @@ -40,8 +40,8 @@ class TestMogileFSLargePipe< TestMogIntegration File.unlink(tmp_path) x!("mkfifo", tmp_path) pid = fork do - File.open(tmp_path, "wb") do |w| - nr.times { w.write(junk) } + File.open(tmp_path, "wb") do |wr| + nr.times { wr.write(junk) } end end assert_equal(nr * junk.size, @client.store_file("fifo", nil, tmp_path)) -- cgit v1.2.3-24-ge0c7