From 89fdfbac7d827f50c9d2b8e85e739a178367c7db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Thu, 29 Sep 2022 12:51:14 +0800 Subject: Replace break with return now that there's more --- shopify.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/shopify.c b/shopify.c index a8c2613..2769a7b 100644 --- a/shopify.c +++ b/shopify.c @@ -504,8 +504,8 @@ static enum MHD_Result handle_request(void *cls, struct MHD_Connection *con, header); MHD_add_response_header(res, "Content-Type", "application/json"); - ret = MHD_queue_response(con, MHD_HTTP_OK, res); - break; + return MHD_queue_response(con, MHD_HTTP_OK, + res); } i = 0; const struct shopify_carrierservice *carrierservice; @@ -560,8 +560,8 @@ static enum MHD_Result handle_request(void *cls, struct MHD_Connection *con, header); MHD_add_response_header(res, "Content-Type", "application/json"); - ret = MHD_queue_response(con, MHD_HTTP_OK, res); - break; + return MHD_queue_response(con, MHD_HTTP_OK, + res); } } else if (session && session->access_token) { if (embedded) { -- cgit v1.2.3