Skip to content

Commit bce02bf

Browse files
committed
fix: Rename variable
1 parent a363e26 commit bce02bf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/app.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,17 +84,17 @@ async function init() {
8484
init().catch((err) => errors.push(err));
8585

8686
const BAD_REQUEST = 400;
87-
const server = Http.createServer(async (_req, res) => {
88-
if (_req.url?.startsWith('/githubWebhook')) {
87+
const server = Http.createServer(async (req, res) => {
88+
if (req.url?.startsWith('/githubWebhook')) {
8989
const chunks = [];
90-
for await (const chunk of _req) {
90+
for await (const chunk of req) {
9191
chunks.push(chunk);
9292
}
9393

9494
try {
9595
const body = JSON.parse(Buffer.concat(chunks).toString());
9696

97-
const { statusCode } = await handleGithubWebhook(_req.url, body);
97+
const { statusCode } = await handleGithubWebhook(req.url, body);
9898

9999
res.statusCode = statusCode;
100100
res.end();

0 commit comments

Comments
 (0)