Skip to content

Use const for EOL variable #129

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

Merged
merged 1 commit into from
Mar 4, 2020
Merged

Use const for EOL variable #129

merged 1 commit into from
Mar 4, 2020

Conversation

LinusU
Copy link
Contributor

@LinusU LinusU commented Mar 4, 2020

The variable is never re-assigned, and using let triggers the following linting error:

standard: Use JavaScript Standard Style (https://standardjs.com)
standard: Run `standard --fix` to automatically fix some problems.
  /Users/linus/coding/standard/tmp/jsonfile/utils.js:2:7: 'EOL' is never reassigned. Use 'const' instead. (prefer-const)

I found this when running the tests in standard ☺️

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
The variable is never re-assigned, and using let triggers the following linting error:

```
standard: Use JavaScript Standard Style (https://standardjs.com)
standard: Run `standard --fix` to automatically fix some problems.
  /Users/linus/coding/standard/tmp/jsonfile/utils.js:2:7: 'EOL' is never reassigned. Use 'const' instead. (prefer-const)
```
@RyanZim RyanZim merged commit 5d9302b into jprichardson:master Mar 4, 2020
@LinusU LinusU deleted the patch-1 branch March 5, 2020 10:37
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.

None yet

2 participants