Skip to content

Commit 3b6abf2

Browse files
removed redundant
1 parent 47fd208 commit 3b6abf2

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

pkg/codefresh/argo_runtime.go

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,6 @@ type (
3434
}
3535

3636
graphQlRuntimeCreationResponse struct {
37-
Data struct {
38-
Runtime model.RuntimeCreationResponse
39-
}
40-
Errors []graphqlError
41-
}
42-
43-
graphQlRuntimeCreationResponseNew struct {
4437
Data struct {
4538
RuntimeNew model.RuntimeCreationResponse
4639
}
@@ -74,7 +67,7 @@ func (r *argoRuntime) Create(ctx context.Context, opts *model.RuntimeInstallatio
7467
},
7568
}
7669

77-
res := &graphQlRuntimeCreationResponseNew{}
70+
res := &graphQlRuntimeCreationResponse{}
7871
err := r.codefresh.graphqlAPI(ctx, jsonData, res)
7972
if err != nil {
8073
return nil, fmt.Errorf("failed making a graphql API call while creating runtime: %w", err)

0 commit comments

Comments
 (0)