Skip to content

Commit

Permalink
fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
lhanjian committed Nov 16, 2023
1 parent 8a1c307 commit 8bbf090
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -524,8 +524,7 @@ ngx_http_lua_upstream_find_upstream(lua_State *L, ngx_str_t *host)

uscf = ngx_http_upstream_rbtree_lookup(umcf, host);

if (uscf != NULL)
{
if (uscf != NULL) {
return uscf;
}

Expand Down Expand Up @@ -578,8 +577,7 @@ ngx_http_lua_upstream_find_upstream(lua_State *L, ngx_str_t *host)
addr.data = host->data;
addr.len = len;
uscf = ngx_http_upstream_rbtree_lookup(umcf, &addr);
if (uscf != NULL && uscf->port
&& uscf->port == n)
if (uscf != NULL && uscf->port && uscf->port == n)
{
return uscf;
}
Expand Down

0 comments on commit 8bbf090

Please sign in to comment.