Skip to content

Potential fix for code scanning alert no. 69: Semicolon insertion#1154

Merged
tunetheweb merged 1 commit intomainfrom
alert-autofix-69
Oct 16, 2025
Merged

Potential fix for code scanning alert no. 69: Semicolon insertion#1154
tunetheweb merged 1 commit intomainfrom
alert-autofix-69

Conversation

@tunetheweb
Copy link
Copy Markdown
Member

Potential fix for https://github.com/HTTPArchive/httparchive.org/security/code-scanning/69

To fix the problem, we should explicitly terminate the callOnceWhenVisible function call on line 271 with a semicolon, instead of relying on JavaScript’s automatic semicolon insertion. This means that after the line 270: drawChart(series, containerId, options); and the closing bracket and parenthesis on line 271: }), we add a semicolon, making it 271: });. This edit should be made only to line 271. No other changes or imports are needed, as this is a pure style fix that does not change any logic.


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>
@tunetheweb tunetheweb marked this pull request as ready for review October 16, 2025 15:29
@tunetheweb tunetheweb merged commit 063b936 into main Oct 16, 2025
10 checks passed
@tunetheweb tunetheweb deleted the alert-autofix-69 branch October 16, 2025 15:34
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