Skip to content

Fix for Missing error check#1156

Open
silvestre wants to merge 1 commit intomainfrom
finding-autofix-ca6ca77d
Open

Fix for Missing error check#1156
silvestre wants to merge 1 commit intomainfrom
finding-autofix-ca6ca77d

Conversation

@silvestre
Copy link
Copy Markdown
Member

@silvestre silvestre commented Apr 16, 2026

Issue

Small issue found by CodeQL, result was used before error checking.

Fix

The fix is to move the error check immediately after http.NewRequest(...) and only access outRequest after confirming err == nil.

Suggested fix powered by Copilot Autofix.

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@sonarqubecloud
Copy link
Copy Markdown

@silvestre silvestre marked this pull request as ready for review April 17, 2026 11:59
@silvestre silvestre enabled auto-merge (squash) April 17, 2026 13:45
@silvestre silvestre requested a review from bonzofenix April 17, 2026 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant