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 {