From e8344fbf3af94f96b3a6467d6ddad176935f0017 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 22 Feb 2010 14:37:48 -0800 Subject: util: simplify chown_logs no point in using "next" here --- lib/unicorn/util.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/unicorn/util.rb b/lib/unicorn/util.rb index 3951596..5ceda5c 100644 --- a/lib/unicorn/util.rb +++ b/lib/unicorn/util.rb @@ -28,8 +28,7 @@ module Unicorn def chown_logs(uid, gid) ObjectSpace.each_object(File) do |fp| - is_log?(fp) or next - fp.chown(uid, gid) + fp.chown(uid, gid) if is_log?(fp) end end -- cgit v1.2.3-24-ge0c7