about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-01-06 17:37:25 -0800
committerEric Wong <normalperson@yhbt.net>2010-01-06 17:40:32 -0800
commit5d4fd9f41ab57f7297569910c08f7330dd3ec39e (patch)
tree79c0d27f394bc914053638042dd181fe4aad24ed
parent30ce68ad7ba0c7467b0369e0a5d6252baa52aae4 (diff)
instance variable lookups are expensive as-is
-rw-r--r--lib/clogger/pure.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/clogger/pure.rb b/lib/clogger/pure.rb
index da2c1de..249733a 100644
--- a/lib/clogger/pure.rb
+++ b/lib/clogger/pure.rb
@@ -27,10 +27,10 @@ class Clogger
     end
     status, headers, body = resp
     headers = Rack::Utils::HeaderHash.new(headers) if @need_resp
-    if wrap_body?
+    if @wrap_body
       @reentrant = env['rack.multithread']
       @env, @status, @headers, @body = env, status, headers, body
-      return [ status, headers, reentrant? ? self.dup : self ]
+      return [ status, headers, @reentrant ? self.dup : self ]
     end
     log(env, status, headers)
     [ status, headers, body ]