From d8109e5e531ceca5a4d1c0a4f9e4d625f74e336b Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 2 Mar 2015 18:50:55 +0000 Subject: save about 200 bytes of memory on x86-64 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: -- cgit v1.2.3-24-ge0c7