Skip to content

Commit

Permalink
fix: whitespace (golangci)
Browse files Browse the repository at this point in the history
  • Loading branch information
iwilltry42 committed Jan 3, 2025
1 parent 698b1f7 commit 13ca8d7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pkg/api/handlers/modelprovider.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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
Expand Down

0 comments on commit 13ca8d7

Please sign in to comment.