From 17cbf3ce4f3c863464007d9510e8d4009124f0f2 Mon Sep 17 00:00:00 2001 From: Sean McBride Date: Mon, 9 May 2022 21:48:58 -0400 Subject: [PATCH] refactor: Remove extraneous assert --- runtime/include/http_session.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/runtime/include/http_session.h b/runtime/include/http_session.h index 74c0395..1085622 100644 --- a/runtime/include/http_session.h +++ b/runtime/include/http_session.h @@ -228,8 +228,6 @@ http_session_receive_request(struct http_session *session, http_session_receive_ assert(header_size > 0); int required_size = header_size + session->http_request.body_length; - assert(required_size > 0); - if (required_size > request_buffer->capacity) { uint8_t *old_buffer = request_buffer->buffer; if (vec_u8_resize(request_buffer, required_size) != 0) {