Skip to content

Commit d375d57

Browse files
committed
fix: remove type
Signed-off-by: Vladislav Sukhin <[email protected]>
1 parent 1fb275d commit d375d57

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

pkg/api/v1/testkube/model_webhook_extended.go

+4-5
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,11 @@ func (w *Webhook) QuoteTextFields() {
8383
}
8484
}
8585

86-
type yamlData struct {
87-
PayloadTemplate string `yaml:"payloadTemplate"`
88-
}
89-
9086
func printPayloadTemplate(text string) (string, error) {
91-
yamlData, err := yaml.Marshal(&yamlData{PayloadTemplate: text})
87+
data := struct {
88+
PayloadTemplate string `yaml:"payloadTemplate"`
89+
}{PayloadTemplate: text}
90+
yamlData, err := yaml.Marshal(&data)
9291
if err != nil {
9392
return "", err
9493
}

0 commit comments

Comments
 (0)