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 0762240
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions native/common/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -578,8 +578,7 @@ const char *get_route_balancer(request_rec *r, const proxy_server_conf *conf, co
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) ==
Expand Down

0 comments on commit 0762240

Please sign in to comment.