Skip to content

fix: remove duplicate express.json() middleware in public server#7

Open
ArshLabs wants to merge 1 commit intoc2siorg:mainfrom
ArshLabs:fix/duplicate-express-json
Open

fix: remove duplicate express.json() middleware in public server#7
ArshLabs wants to merge 1 commit intoc2siorg:mainfrom
ArshLabs:fix/duplicate-express-json

Conversation

@ArshLabs
Copy link
Copy Markdown

What

express.json() was registered twice in lensmint-public-server/server.js:

  • Line 13 (first registration - keep this one)
  • Line 41 (duplicate - removed)

Fix

Removed the duplicate app.use(express.json()) on line 41.
While Express handles this gracefully, the duplicate is unnecessary
overhead from a previous refactor.

express.json() was registered twice in lensmint-public-server/server.js. While Express handles this gracefully, the duplicate registration is unnecessary overhead and indicates dead code from a previous refactor.
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.

1 participant