Skip to content
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

Remove unnecessary call of _.snakeCase on a literal #185

Merged
merged 1 commit into from
Mar 17, 2018

Conversation

akhilesh26
Copy link
Contributor

Problem

There is use of _.snakeCase on literal(editorId).

Solution

Remove use of _.snakeCase and use editor_id directly.

Areas of Impact

src/server/helpers/achievement.js
src/server/routes/editor.js

@coveralls
Copy link

coveralls commented Feb 26, 2018

Coverage Status

Coverage decreased (-0.05%) to 56.855% when pulling 7556731 on akhilesh26:code_improve into 876e59a on bookbrainz:master.

@Arthelon
Copy link
Contributor

Nice catch!

Copy link
Member

@LordSputnik LordSputnik left a comment

Choose a reason for hiding this comment

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

Looks like a good improvement - please just change the format of the commit message as described in #184

Remove use of _.snakeCase() on `editorId` and use `editor_id` directly.

Fixes metabrainz#243

BREAKING CHANGE:
To avoid unnecessarily call of lodash ,  use of  _.snakeCase() on editorId
has removed and used  `editor_id` directly.
@akhilesh26
Copy link
Contributor Author

@LordSputnik thanks for the review. I have updated the commit message as suggested. :)

@LordSputnik LordSputnik merged commit 05f08f5 into metabrainz:master Mar 17, 2018
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.

4 participants