about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-11-20 21:05:22 -0800
committerEric Wong <normalperson@yhbt.net>2009-11-21 22:40:27 -0800
commit15c61925a1825d2474f10fb3698353de75c8437e (patch)
tree0f3167d29887b7d503efa0d3dcc4b133adff3d3b
parentc89ce4fb958d79009feb18cea39b14ddf8b11ff5 (diff)
downloadunicorn-15c61925a1825d2474f10fb3698353de75c8437e.tar.gz
A minor nit, and some folks I know hate needless returns
as MRI does not optimize them away.
-rw-r--r--lib/unicorn.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/unicorn.rb b/lib/unicorn.rb
index cfc6413..68121b4 100644
--- a/lib/unicorn.rb
+++ b/lib/unicorn.rb
@@ -300,7 +300,7 @@ module Unicorn
         end
         logger.info "listening on addr=#{sock_name(io)} fd=#{io.fileno}"
         LISTENERS << io
-        return io
+        io
       rescue Errno::EADDRINUSE => err
         logger.error "adding listener failed addr=#{address} (in use)"
         raise err if tries == 0
@@ -703,7 +703,7 @@ module Unicorn
       wpid <= 0 and return nil
       begin
         Process.kill(0, wpid)
-        return wpid
+        wpid
       rescue Errno::ESRCH
         # don't unlink stale pid files, racy without non-portable locking...
       end