From 6eb09575cc874d51e13391de372e0114c152d8d3 Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Fri, 16 May 2025 13:12:50 +0000 Subject: [PATCH] Generate runcommand --- services/runcommand/api_default.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/services/runcommand/api_default.go b/services/runcommand/api_default.go index 159d4a368..e4acaad9f 100644 --- a/services/runcommand/api_default.go +++ b/services/runcommand/api_default.go @@ -187,7 +187,7 @@ func (r CreateCommandRequest) Execute() (*NewCommandResponse, error) { a := r.apiService client, ok := a.client.(*APIClient) if !ok { - return nil, fmt.Errorf("could not parse client to type APIClient") + return localVarReturnValue, fmt.Errorf("could not parse client to type APIClient") } localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.CreateCommand") if err != nil { @@ -353,7 +353,7 @@ func (r GetCommandRequest) Execute() (*CommandDetails, error) { a := r.apiService client, ok := a.client.(*APIClient) if !ok { - return nil, fmt.Errorf("could not parse client to type APIClient") + return localVarReturnValue, fmt.Errorf("could not parse client to type APIClient") } localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GetCommand") if err != nil { @@ -521,7 +521,7 @@ func (r GetCommandTemplateRequest) Execute() (*CommandTemplateSchema, error) { a := r.apiService client, ok := a.client.(*APIClient) if !ok { - return nil, fmt.Errorf("could not parse client to type APIClient") + return localVarReturnValue, fmt.Errorf("could not parse client to type APIClient") } localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GetCommandTemplate") if err != nil { @@ -693,7 +693,7 @@ func (r ListCommandTemplatesRequest) Execute() (*CommandTemplateResponse, error) a := r.apiService client, ok := a.client.(*APIClient) if !ok { - return nil, fmt.Errorf("could not parse client to type APIClient") + return localVarReturnValue, fmt.Errorf("could not parse client to type APIClient") } localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ListCommandTemplates") if err != nil { @@ -836,7 +836,7 @@ func (r ListCommandsRequest) Execute() (*GetCommandsResponse, error) { a := r.apiService client, ok := a.client.(*APIClient) if !ok { - return nil, fmt.Errorf("could not parse client to type APIClient") + return localVarReturnValue, fmt.Errorf("could not parse client to type APIClient") } localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ListCommands") if err != nil {