Skip to content

Sunglasses-io#165

Open
wesleyfrankel wants to merge 3 commits intoprojectshft:masterfrom
wesleyfrankel:master
Open

Sunglasses-io#165
wesleyfrankel wants to merge 3 commits intoprojectshft:masterfrom
wesleyfrankel:master

Conversation

@wesleyfrankel
Copy link

No description provided.


module.exports = app;

// // POST /api/me/cart/:productId
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove commented out code

app.get("/api/me/cart", (req, res) => {
const { userId } = req;
const user = users.find((user) => user.id === userId);
if (user) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would be cleaner as a ternary

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants