From 3decb4375847b97c117440e5167dbba33d5f33b5 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 6 May 2011 01:04:39 +0000 Subject: remove unnecessary variable assignments --- lib/rainbows/process_client.rb | 2 +- lib/rainbows/xepoll_thread_spawn/client.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/rainbows/process_client.rb b/lib/rainbows/process_client.rb index f30aa5d..3be0ff3 100644 --- a/lib/rainbows/process_client.rb +++ b/lib/rainbows/process_client.rb @@ -59,7 +59,7 @@ module Rainbows::ProcessClient status, headers, body = APP.call(env) end write_response(status, headers, body, alive = hp.next?) - end while alive && env = pipeline_ready(hp) + end while alive && pipeline_ready(hp) alive or close rescue => e handle_error(e) diff --git a/lib/rainbows/xepoll_thread_spawn/client.rb b/lib/rainbows/xepoll_thread_spawn/client.rb index 7e02f82..8cb3d27 100644 --- a/lib/rainbows/xepoll_thread_spawn/client.rb +++ b/lib/rainbows/xepoll_thread_spawn/client.rb @@ -104,14 +104,14 @@ module Rainbows::XEpollThreadSpawn::Client end def pipeline_ready(hp) - env = hp.parse and return env + hp.parse and return true case buf = kgio_tryread(HBUFSIZ) when :wait_readable kato_set return false when String hp.buf << buf - env = hp.parse and return env + hp.parse and return true # continue loop else return close -- cgit v1.2.3-24-ge0c7