Skip to content

Commit

Permalink
Tweak comment language
Browse files Browse the repository at this point in the history
  • Loading branch information
csuwildcat committed Apr 26, 2024
1 parent 43c89b4 commit 25cf1e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/http-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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, if it isn't already present
// Set up the branch-path to the last dot-delimited key, if the path is not already present
const lastLevel = keys.reduce((obj, key) => obj[key] = obj[key] || {}, options)
lastLevel[lastKey] = req.query[param];
}
Expand Down

0 comments on commit 25cf1e8

Please sign in to comment.