diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-09-06 14:29:56 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-09-06 14:31:36 -0700 |
commit | 2213d73a2d23bb39e8a4fa82a33d03daf4c39df2 (patch) | |
tree | 15d496fdbcc3410378b0de35ddf64f5423ad41b8 | |
parent | 0e62a00e2b4821a647f382b1649f744f87f959fc (diff) | |
download | unicorn-2213d73a2d23bb39e8a4fa82a33d03daf4c39df2.tar.gz |
No need to add an extra check, even if it does avoid a function call.
-rw-r--r-- | ext/unicorn_http/unicorn_http.rl | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/unicorn_http/unicorn_http.rl b/ext/unicorn_http/unicorn_http.rl index 94b5355..f296637 100644 --- a/ext/unicorn_http/unicorn_http.rl +++ b/ext/unicorn_http/unicorn_http.rl @@ -426,8 +426,7 @@ static void hp_mark(void *ptr) { struct http_parser *hp = ptr; - if (hp->cont) - rb_gc_mark(hp->cont); + rb_gc_mark(hp->cont); } static VALUE HttpParser_alloc(VALUE klass) |