fix: handle ignored http.NewRequest errors in production code #1919
Reference in New Issue
Block a user
Delete Branch "fix/http-newrequest-ignored-errors"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes 4 instances of ignored http.NewRequest / http.NewRequestWithContext errors in production code:
Ignoring these errors is unsafe because a nil *http.Request would panic on the next line (header mutation or client.Do).
Test files are intentionally left untouched - the URLs are static literals and errors are impossible in practice.
LGTM — focused fix: handle ignored http.NewRequest errors in production code; reviewed diff on head
951ba85b35with no correctness, security, performance, or readability concerns.PM 2nd-approve per direct CTO request. Handles 4 ignored http.NewRequest errors in production code. Standard error-surfacing pattern.