mirror of
https://github.com/nginx/nginx.git
synced 2026-09-01 02:58:40 +00:00
fuse two if's in one condition
This commit is contained in:
parent
64d024605a
commit
bb389f6111
1 changed files with 2 additions and 11 deletions
|
|
@ -530,7 +530,7 @@ ngx_http_file_cache_exists(ngx_http_file_cache_t *cache, ngx_http_cache_t *c)
|
|||
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_cache_t *cache, ngx_http_cache_t *c)
|
|||
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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue