Empty classes do not need a heavy class definition scope. --- lib/unicorn.rb | 3 +-- 1 file changed, 1 insertion(+), 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: -- EW
