summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2022-09-29 13:16:33 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2022-09-29 13:16:33 +0800
commit2e23f7b59842e31adfaaffb654004113f4a03bdb (patch)
tree3a920749127f4a51ed6adf990e57d032c8a1da40
parent89fdfbac7d827f50c9d2b8e85e739a178367c7db (diff)
Revert "Replace break with return now that there's more"
This reverts commit 89fdfbac7d827f50c9d2b8e85e739a178367c7db.
-rw-r--r--shopify.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/shopify.c b/shopify.c
index 2769a7b..a8c2613 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");
- return MHD_queue_response(con, MHD_HTTP_OK,
- res);
+ ret = MHD_queue_response(con, MHD_HTTP_OK, res);
+ break;
}
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");
- return MHD_queue_response(con, MHD_HTTP_OK,
- res);
+ ret = MHD_queue_response(con, MHD_HTTP_OK, res);
+ break;
}
} else if (session && session->access_token) {
if (embedded) {