From 43c89b4667869d0cc7bd4ac94a7b55dcb9a4f054 Mon Sep 17 00:00:00 2001 From: Daniel Buchner Date: Fri, 26 Apr 2024 10:58:48 -0500 Subject: [PATCH] add bit more to comment description --- src/http-api.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/http-api.ts b/src/http-api.ts index 718d1eb..9aa71fc 100644 --- a/src/http-api.ts +++ b/src/http-api.ts @@ -133,7 +133,7 @@ export class HttpApi { for (const param in req.query) { const keys = param.split('.'); const lastKey = keys.pop(); - // Set up the object tree + // Set up the object tree, if it isn't already present const lastLevel = keys.reduce((obj, key) => obj[key] = obj[key] || {}, options) lastLevel[lastKey] = req.query[param]; }