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

Fix typo #375

Merged
merged 1 commit into from
May 10, 2020
Merged

Fix typo #375

merged 1 commit into from
May 10, 2020

Conversation

xamgore
Copy link
Contributor

@xamgore xamgore commented May 9, 2020

@coveralls
Copy link

Coverage Status

Coverage remained the same at 93.37% when pulling 540c4d1 on xamgore:patch-1 into eb2db0c on mozilla:master.

@madarche
Copy link
Collaborator

madarche commented May 10, 2020

What you are proposing to modify is not a typo. Also the proposed change is not consistent with the overall code style. So, not accepting this PR.

@madarche madarche closed this May 10, 2020
@@ -32,7 +32,7 @@ convict.addFormats(convict_format_with_moment)

// Use this only if you have a .json configuration file in JSON5 format
// (i.e. with comments, etc.).
convict.addParser({extension: 'json', parse: JSON.parse})
convict.addParser({extension: 'json', parse: JSON5.parse})
Copy link
Contributor

Choose a reason for hiding this comment

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

@madarche are you sure this isn’t a typo? Using the native JSON.parse on json5 would throw an error here, and i believe the current json5 import from line 25 is currently unused.

Copy link
Collaborator

Choose a reason for hiding this comment

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

@pdehaan you're right! I've mistakenly closed this PR: I've thought its aim was just to rename json5JSON5. And @xamgore sorry!

@madarche madarche reopened this May 10, 2020
@madarche madarche merged commit 76f0f98 into mozilla:master May 10, 2020
@madarche
Copy link
Collaborator

So the typo is fixed. Thanks to @xamgore and @pdehaan!

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