summary refs log tree commit homepage
path: root/lib/rainbows/dev_fd_response.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-07-19 10:09:51 +0000
committerEric Wong <normalperson@yhbt.net>2010-07-19 17:04:19 -0700
commit269ef624a0a722ca07a04c77d8e4e4e61413dcdd (patch)
treedc424f16ca710d3f941d8abaad71d84b7af280b0 /lib/rainbows/dev_fd_response.rb
parentc587c585e6d327c1646ce33fa10fbef6c27fc74c (diff)
Diffstat (limited to 'lib/rainbows/dev_fd_response.rb')
-rw-r--r--lib/rainbows/dev_fd_response.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/rainbows/dev_fd_response.rb b/lib/rainbows/dev_fd_response.rb
index ba1fdaa..c04d64f 100644
--- a/lib/rainbows/dev_fd_response.rb
+++ b/lib/rainbows/dev_fd_response.rb
@@ -73,10 +73,8 @@ class Rainbows::DevFdResponse < Struct.new(:app)
 
     # called by the web server after #each
     def close
-      begin
-        to_io.close if to_io.respond_to?(:close)
-      rescue IOError # could've been IO::new()'ed and closed
-      end
+      to_io.close if to_io.respond_to?(:close)
+    rescue IOError # could've been IO::new()'ed and closed
     end
   end
   #:startdoc: