summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-02-22 14:37:48 -0800
committerEric Wong <normalperson@yhbt.net>2010-02-22 14:38:43 -0800
commite8344fbf3af94f96b3a6467d6ddad176935f0017 (patch)
tree06100ec06542fd787033ec0d1b21d636dc52be1c
parent3b589335d56ab59aca6772b78eeb96335dc55455 (diff)
no point in using "next" here
-rw-r--r--lib/unicorn/util.rb3
1 files changed, 1 insertions, 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