1
0
mirror of https://github.com/go-task/task.git synced 2025-10-08 23:02:02 +02:00

lint: fix lint by passing context

This commit is contained in:
Andrey Nering
2025-09-21 10:55:53 -03:00
parent 12793c350d
commit 68b1d2783d

View File

@@ -53,7 +53,7 @@ func (node *HTTPNode) ReadContext(ctx context.Context) ([]byte, error) {
if err != nil {
return nil, err
}
req, err := http.NewRequest("GET", url.String(), nil)
req, err := http.NewRequestWithContext(ctx, "GET", url.String(), nil)
if err != nil {
return nil, errors.TaskfileFetchFailedError{URI: node.Location()}
}