Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 4bbb055

Browse files
Remove round brackets in typeof
1 parent 7f75542 commit 4bbb055

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎JavaScript/goodServer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const types = {
2222

2323
http.createServer((req, res) => {
2424
const data = routing[req.url];
25-
const type = typeof(data);
25+
const type = typeofdata;
2626
const serializer = types[type];
2727
const result = serializer(data, req, res);
2828
res.end(result);

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /