8000 Fix code style · HowProgrammingWorks/Threads@3f59251 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3f59251

Browse files
committed
Fix code style
1 parent 6719420 commit 3f59251

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

JavaScript/3-http.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,8 @@ const port = 8000;
88
threads.parentPort.postMessage({ name: 'started', port });
99

1010
const routing = {
11-
'/': async (req, res) => {
12-
return { status: res.statusCode };
13-
},
14-
'/api/method': async (req, res) => {
15-
return { status: res.statusCode };
16-
},
11+
'/': async (req, res) => ({ status: res.statusCode }),
12+
'/api/method': async (req, res) => ({ status: res.statusCode }),
1713
};
1814

1915
const types = {

0 commit comments

Comments
 (0)
0