Skip to content

Potential fix for code scanning alert no. 26: disallow unused variables#9

Merged
ado24 merged 1 commit into
releasefrom
bugfix/unused-lambda-params
Jun 24, 2025
Merged

Potential fix for code scanning alert no. 26: disallow unused variables#9
ado24 merged 1 commit into
releasefrom
bugfix/unused-lambda-params

Conversation

@ado24

@ado24 ado24 commented Jun 24, 2025

Copy link
Copy Markdown
Owner

Potential fix for https://github.com/ado24/NAD-C338-Controller/security/code-scanning/26

To fix the problem, we should remove the unused variable r from the .then() callback. Since the callback does not use the resolved value of the promise, we can omit the parameter entirely. This will eliminate the ESLint error while preserving the existing functionality of the code.

The changes will be made to the .then() callbacks on lines 165, 167, 173, 175, 181, and 183, as they all define r but do not use it.


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>
@ado24 ado24 marked this pull request as ready for review June 24, 2025 18:33
@ado24 ado24 merged commit 8553cd2 into release Jun 24, 2025
4 checks passed
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.

1 participant