about summary refs log tree commit homepage
path: root/lib/unicorn.rb
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2015-03-02 18:50:55 +0000
committerEric Wong <e@80x24.org>2015-03-02 20:54:24 +0000
commitd8109e5e531ceca5a4d1c0a4f9e4d625f74e336b (patch)
treec3d36ba509b7249ab725c2a25e31882b87bc6eb0 /lib/unicorn.rb
parent324749a51c480b0c746444da469947e86bcbefa0 (diff)
downloadunicorn-d8109e5e531ceca5a4d1c0a4f9e4d625f74e336b.tar.gz
Empty classes do not need a heavy class definition scope.
Diffstat (limited to 'lib/unicorn.rb')
-rw-r--r--lib/unicorn.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/unicorn.rb b/lib/unicorn.rb
index dd02761..467245d 100644
--- a/lib/unicorn.rb
+++ b/lib/unicorn.rb
@@ -21,8 +21,7 @@ module Unicorn
   # since there is nothing in the application stack that is responsible
   # for client shutdowns/disconnects.  This exception is visible to Rack
   # applications unless PrereadInput middleware is loaded.
-  class ClientShutdown < EOFError
-  end
+  ClientShutdown = Class.new(EOFError)
 
   # :stopdoc: