Skip to content

Commit 1ea163d

Browse files
committed
Simpler code
Signed-off-by: David Gageot <david.gageot@docker.com>
1 parent 055f42e commit 1ea163d

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

pkg/tools/builtin/fetch.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,7 @@ func (h *fetchHandler) CallTool(ctx context.Context, toolCall tools.ToolCall) (*
4747
Timeout: h.timeout,
4848
}
4949
if params.Timeout > 0 {
50-
timeout := time.Duration(params.Timeout) * time.Second
51-
client = &http.Client{Timeout: timeout}
50+
client.Timeout = time.Duration(params.Timeout) * time.Second
5251
}
5352

5453
var results []FetchResult

0 commit comments

Comments
 (0)