From 15c61925a1825d2474f10fb3698353de75c8437e Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 20 Nov 2009 21:05:22 -0800 Subject: cleanup: remove needless returns A minor nit, and some folks I know hate needless returns as MRI does not optimize them away. --- lib/unicorn.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') 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 -- cgit v1.2.3-24-ge0c7