From 13ca8d78b24bbf7b3a26db8f535aab85cc317845 Mon Sep 17 00:00:00 2001 From: Thorsten Klein Date: Fri, 3 Jan 2025 13:43:38 +0100 Subject: [PATCH] fix: whitespace (golangci) --- pkg/api/handlers/modelprovider.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pkg/api/handlers/modelprovider.go b/pkg/api/handlers/modelprovider.go index 8f013e206..51eac8f8d 100644 --- a/pkg/api/handlers/modelprovider.go +++ b/pkg/api/handlers/modelprovider.go @@ -144,7 +144,7 @@ func (mp *ModelProviderHandler) Validate(req api.Context) error { } } - defer req.Delete(thread) + defer func() { _ = req.Delete(thread) }() task, err := mp.invoker.SystemTask(req.Context(), thread, "validate from "+ref.Spec.Reference, "", invoke.SystemTaskOptions{Env: envs}) if err != nil { @@ -163,11 +163,9 @@ func (mp *ModelProviderHandler) Validate(req api.Context) error { } return nil - } func (mp *ModelProviderHandler) Configure(req api.Context) error { - var ref v1.ToolReference if err := req.Get(&ref, req.PathValue("id")); err != nil { return err