tests: use proper context in test + add pull request workflow

This commit is contained in:
Stevan Freeborn
2026-01-12 17:59:46 -06:00
parent a9e49906e0
commit 54865ba64c
3 changed files with 48 additions and 7 deletions
+1 -1
View File
@@ -143,7 +143,7 @@ func (c *Client) handleAPIError(resp *http.Response) error {
// Returns:
// - *http.Request: The prepared HTTP request
// - error: An error if the context is nil or request creation fails
func (c *Client) newRequest(ctx context.Context, method, path string, body any) (*http.Request, error) {
func (c *Client) newRequest(ctx context.Context, method, path string, _ any) (*http.Request, error) {
if ctx == nil {
return nil, fmt.Errorf("context must not be nil")
}