From d58a0baa03803e66998976c7bbbeb39cbff89bfa Mon Sep 17 00:00:00 2001 From: Bradley Bickford Date: Sat, 29 Mar 2025 12:32:29 -0400 Subject: [PATCH] Adding some return statements to make the JS control flow the same as the Python --- apiserver_in_memory.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apiserver_in_memory.js b/apiserver_in_memory.js index 3fa1c15..fc3aacf 100644 --- a/apiserver_in_memory.js +++ b/apiserver_in_memory.js @@ -48,6 +48,7 @@ app.get("/counters/:counterName", (req, res) => { } res.status(404).send(error_response) + return } data_response = { @@ -66,6 +67,7 @@ app.post("/counters/:counterName/increment", (req, res) => { } res.status(404).send(error_response) + return } data_response = { @@ -87,6 +89,7 @@ app.post("/counters/:counterName/decrement", (req, res) => { } res.status(404).send(error_response) + return } data_response = {