-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Http server with data structures #13
base: master
Are you sure you want to change the base?
Conversation
b4ca289
to
5a07d0f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@assmass13 good job!
However your commit affects demo files added by @AMashoshyna :
- removes
submissions/amashoshyna/port-sniffer/index.js
- removes
submissions/amashoshyna/port-sniffer/README.md
The above means these files will be no longer available for future contributors which is not really nice.
Please fix the issue.
df43660
to
54cd56f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With a small exception of await
the code looks great! Please fix linting issues (they are all auto-fixable)
}); | ||
}); | ||
|
||
const parseJson = async req => readBody(req).then(JSON.parse); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
async
keyword is usually not needed when you don't use await
.
}; | ||
} | ||
|
||
async postStackRoute(req, res) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here: async
keyword is redundant
Http server with data structures is developed