Skip to content

Commit

Permalink
Join two if branches with the same condition
Browse files Browse the repository at this point in the history
  • Loading branch information
jajik committed Oct 30, 2024
1 parent d5e21a3 commit 40a8fe9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions native/common/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -573,14 +573,13 @@ const char *get_route_balancer(request_rec *r, const proxy_server_conf *conf, co
if (route && *route) {
/* Nice we have a route, but make sure we have to serve it */
int has_contexts = 0;
const char *domain = NULL;
node_context *nodes = find_node_context_host(r, balancer, route, use_alias, vhost_table, context_table,
node_table, &has_contexts);
if (nodes == NULL) {
continue; /* we can't serve context/host for the request with this balancer */
}
}
if (route && *route) {
const char *domain = NULL;

ap_log_error(APLOG_MARK, APLOG_TRACE4, 0, r->server, "cluster: Found route %s", route);
if (find_nodedomain(r, &domain, route, &balancer->s->name[BALANCER_PREFIX_LENGTH], node_table) ==
APR_SUCCESS) {
Expand Down

0 comments on commit 40a8fe9

Please sign in to comment.