Skip to content

Commit a363e26

Browse files
committed
fix: Lint errors
1 parent 5560c56 commit a363e26

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/app.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,11 @@ async function init() {
8383

8484
init().catch((err) => errors.push(err));
8585

86+
const BAD_REQUEST = 400;
8687
const server = Http.createServer(async (_req, res) => {
8788
if (_req.url?.startsWith('/githubWebhook')) {
8889
const chunks = [];
89-
for await (let chunk of _req) {
90+
for await (const chunk of _req) {
9091
chunks.push(chunk);
9192
}
9293

@@ -99,7 +100,7 @@ const server = Http.createServer(async (_req, res) => {
99100
res.end();
100101
} catch (error) {
101102
console.log(error);
102-
res.statusCode = 400;
103+
res.statusCode = BAD_REQUEST;
103104
res.end();
104105
}
105106

0 commit comments

Comments
 (0)