diff options
author | Eric Wong <e@80x24.org> | 2015-03-02 18:50:55 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2015-03-02 20:54:24 +0000 |
commit | d8109e5e531ceca5a4d1c0a4f9e4d625f74e336b (patch) | |
tree | c3d36ba509b7249ab725c2a25e31882b87bc6eb0 /lib | |
parent | 324749a51c480b0c746444da469947e86bcbefa0 (diff) | |
download | unicorn-d8109e5e531ceca5a4d1c0a4f9e4d625f74e336b.tar.gz |
Empty classes do not need a heavy class definition scope.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/unicorn.rb | 3 |
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: |