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

refactor: change 'var' to 'let' and 'const' #4379

Merged
merged 1 commit into from
Nov 17, 2023

Conversation

Sauter001
Copy link
Contributor

Updated:

  1. all var declarations changed to const or let to be clear
  2. change @param {date} description to @param {Date}

Copy link

@pullrequest pullrequest bot left a 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.

Copy link

@pullrequest pullrequest bot left a 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.

Copy link

codecov bot commented Nov 17, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (89d321f) 96.67% compared to head (d1d02af) 96.67%.
Report is 22 commits behind head on main.

❗ Current head d1d02af differs from pull request most recent head 39544b9. Consider uploading reports for the commit 39544b9 to get more accurate results

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.
📢 Have feedback on the report? Share it here.

Copy link

@pullrequest pullrequest bot left a 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.

Image of Dallas Dallas


Reviewed with ❤️ by PullRequest

* @param {date} start
* @param {date} end
* @param {Date} start
* @param {Date} end
Copy link

Choose a reason for hiding this comment

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

Nice catch

◽ Compliment

Image of Dallas Dallas

Copy link

@pullrequest pullrequest bot left a comment

Choose a reason for hiding this comment

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

These minor refactorings look good—I don't see any issues here.

Image of Eric E Eric E


Reviewed with ❤️ by PullRequest

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.

2 participants