Skip to content

Commit

Permalink
Use context.TODO(). Check error.
Browse files Browse the repository at this point in the history
  • Loading branch information
ggreer committed Aug 6, 2024
1 parent b00aec1 commit 07ffbca
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pkg/uhttp/wrapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,11 @@ type (
)

func NewBaseHttpClient(httpClient *http.Client) *BaseHttpClient {
ctx := context.Background()
client, _ := NewBaseHttpClientWithContext(ctx, httpClient)
ctx := context.TODO()
client, err := NewBaseHttpClientWithContext(ctx, httpClient)
if err != nil {
return nil
}
return client
}

Expand Down

0 comments on commit 07ffbca

Please sign in to comment.