Skip to content

fix: add missing let/const declarations in sync-leaderboard.js (#60)#65

Open
Akshita-2307 wants to merge 1 commit into
codepvg:mainfrom
Akshita-2307:fix/missing-let-const-issue60
Open

fix: add missing let/const declarations in sync-leaderboard.js (#60)#65
Akshita-2307 wants to merge 1 commit into
codepvg:mainfrom
Akshita-2307:fix/missing-let-const-issue60

Conversation

@Akshita-2307
Copy link
Copy Markdown

Summary

Adds missing let/const declarations to variables used without declaration in sync-leaderboard.js. Fixes #60.

Changes

  • Added 'let' to dailyData, weeklyData, monthlyData, and the first previousData declaration

Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

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

Hello! Thank you for your first Pull Request!
We are excited to review your contribution to the CodePVG LeetCode Leaderboard.
Please make sure you have run Prettier on your code locally, as our GitHub Actions will fail if the code is unformatted. A maintainer will review your code soon. Thanks for helping out!

@Akshita-2307
Copy link
Copy Markdown
Author

Hi maintainers! This PR fixes issue #60 by adding missing let/const declarations to variables in sync-leaderboard.js that were previously assigned without declaration (leaking to global scope). Fixes 4 instances. Would appreciate a review. Thank you!

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.

Missing let/const Declarations Create Implicit Globals Causing Silent Data Corruption

1 participant