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 code scanning alert no. 989: Disallow unused variables #7338

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

VIKTORVAV99
Copy link
Member

Fixes https://github.com/electricitymaps/electricitymaps-contrib/security/code-scanning/989

To fix the problem, we need to remove the unused import round from the file. This will resolve the ESLint error and clean up the code by removing unnecessary imports.

  • General Fix: Remove the unused variable or import.
  • Detailed Fix: Specifically, remove the round import from the import statement on line 11 in the file web/src/features/charts/bar-breakdown/utils.ts.
  • Files/Regions/Lines to Change: Edit the import statement on line 11.
  • Needed: No additional methods, imports, or definitions are required to implement this change.

Suggested fixes powered by Copilot Autofix. Review carefully before merging.

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@VIKTORVAV99 VIKTORVAV99 requested review from a team and tonypls and removed request for a team October 19, 2024 12:41
@VIKTORVAV99 VIKTORVAV99 marked this pull request as ready for review October 19, 2024 12:41
@VIKTORVAV99 VIKTORVAV99 added the techdebt Unpleasantness that does (or may in future) affect development label Oct 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
frontend 🎨 techdebt Unpleasantness that does (or may in future) affect development
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant