Skip to content

Commit 267f069

Browse files
without separate interface{}
1 parent d3b564c commit 267f069

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pkg/codefresh/argo_runtime.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,8 @@ func newArgoRuntimeAPI(codefresh *codefresh) IArgoRuntimeAPI {
3636
}
3737

3838
func (r *argoRuntime) Create(runtimeName string) (*model.RuntimeCreationResponse, error) {
39-
type forJsonData interface{}
40-
4139
// the newlines are necessary
42-
var interpolatedMutation forJsonData = fmt.Sprintf("mutation {\n runtime(name: \"%s\") {\n id\n newAccessToken\n }\n}\n", runtimeName)
40+
var interpolatedMutation interface{} = fmt.Sprintf("mutation {\n runtime(name: \"%s\") {\n id\n newAccessToken\n }\n}\n", runtimeName)
4341

4442
jsonData := map[string]interface{}{
4543
"query": interpolatedMutation,

0 commit comments

Comments
 (0)