changeset 3966:9c425f22ea36

fuse two if's in one condition
author Igor Sysoev <igor@sysoev.ru>
date Sun, 24 Jul 2011 16:10:06 +0000
parents 90b0487fba44
children 83e41f6f6d96
files src/http/ngx_http_file_cache.c
diffstat 1 files changed, 2 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/src/http/ngx_http_file_cache.c
+++ b/src/http/ngx_http_file_cache.c
@@ -530,7 +530,7 @@ ngx_http_file_cache_exists(ngx_http_file
             goto done;
         }
 
-        if (fcn->exists) {
+        if (fcn->exists || fcn->uses >= c->min_uses) {
 
             c->exists = fcn->exists;
             c->body_start = fcn->body_start;
@@ -540,16 +540,7 @@ ngx_http_file_cache_exists(ngx_http_file
             goto done;
         }
 
-        if (fcn->uses >= c->min_uses) {
-
-            c->exists = fcn->exists;
-            c->body_start = fcn->body_start;
-
-            rc = NGX_OK;
-
-        } else {
-            rc = NGX_AGAIN;
-        }
+        rc = NGX_AGAIN;
 
         goto done;
     }