Skip to content

Commit

Permalink
Minor simplification
Browse files Browse the repository at this point in the history
  • Loading branch information
epandurski committed Mar 9, 2023
1 parent 1844394 commit 2168829
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -495,8 +495,8 @@ const server = http.createServer(async (req, res) => {
if (serversConfig) {
if (path === reservePath && req.method === 'POST') {
const config = serversConfig
processRequestBody(req, async (body) => {
await reserveRandomId(config, req.headers, body, res)
processRequestBody(req, (body) => {
reserveRandomId(config, req.headers, body, res)
})
return
}
Expand Down

0 comments on commit 2168829

Please sign in to comment.