Skip to content

Commit

Permalink
CLEANUP: http_ext: remove useless BUG_ON() in http_handle_xot_header()
Browse files Browse the repository at this point in the history
A useless BUG_ON() statement was let in a conditional block that already
checks that the condition cannot be met within the block. Remove the
useless BUG_ON()
  • Loading branch information
Darlelet committed Oct 17, 2024
1 parent d28d016 commit 9262b71
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/http_ext.c
Original file line number Diff line number Diff line change
Expand Up @@ -870,7 +870,6 @@ int http_handle_xot_header(struct stream *s, struct channel *req)
}
if (s->be->http_ext && s->be->http_ext->xot) {
/* backend */
BUG_ON(!s->be->http_ext);
b_xot = s->be->http_ext->xot;
}

Expand Down

0 comments on commit 9262b71

Please sign in to comment.