-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
refactor: change 'var' to 'let' and 'const' #4379
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ This pull request was sent to the PullRequest network.
@Sauter001 you can click here to see the review status or cancel the code review job.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PullRequest Breakdown
Reviewable lines of change
+ 23
- 23
100% JavaScript
Type of change
Feature - These changes are adding a new feature or improvement to existing code.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4379 +/- ##
=======================================
Coverage 96.67% 96.67%
=======================================
Files 27 27
Lines 2374 2374
Branches 966 968 +2
=======================================
Hits 2295 2295
Misses 79 79 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great to me. Switching away from var
is definitely helpful.
I do think var
still exists in the codebase, and the PR description made me think this was covering all of them, but I assume the others will be in separate PRs.
Reviewed with ❤️ by PullRequest
* @param {date} start | ||
* @param {date} end | ||
* @param {Date} start | ||
* @param {Date} end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated:
var
declarations changed toconst
orlet
to be clear@param {date}
description to@param {Date}