Skip to content

Commit 6e5ac16

Browse files
committed
Fix typo
1 parent f9ca243 commit 6e5ac16

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

internal/executor.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,10 @@ type Metadata struct {
9191
}
9292

9393
// MedataOption is a function that modifies the Metadata configuration.
94-
type medataOption func(*Metadata) error
94+
type metadataOption func(*Metadata) error
9595

9696
// enableResultViews enables the specified result views in the metadata.
97-
func enableResultViews(views ...ResultView) medataOption {
97+
func enableResultViews(views ...ResultView) metadataOption {
9898
return func(metadata *Metadata) error {
9999
for _, cfg := range metadata.ResultViewConfig {
100100
cfg.Enabled = false
@@ -111,7 +111,7 @@ func enableResultViews(views ...ResultView) medataOption {
111111
}
112112

113113
// disableResultViews disables the specified result views in the metadata.
114-
func disableResultViews(views ...ResultView) medataOption {
114+
func disableResultViews(views ...ResultView) metadataOption {
115115
return func(metadata *Metadata) error {
116116
for _, v := range views {
117117
cfg, ok := metadata.ResultViewConfig[v]
@@ -125,22 +125,22 @@ func disableResultViews(views ...ResultView) medataOption {
125125
}
126126

127127
// withConfigExamples adds examples to the executor metadata.
128-
func withConfigExamples(examples ...ConfigExample) medataOption {
128+
func withConfigExamples(examples ...ConfigExample) metadataOption {
129129
return func(metadata *Metadata) error {
130130
metadata.Examples.Configs = append(metadata.Examples.Configs, examples...)
131131
return nil
132132
}
133133
}
134134

135135
// withPayloadExamples adds examples to the executor metadata.
136-
func withPayloadExamples(examples ...PayloadExample) medataOption {
136+
func withPayloadExamples(examples ...PayloadExample) metadataOption {
137137
return func(metadata *Metadata) error {
138138
metadata.Examples.Payloads = append(metadata.Examples.Payloads, examples...)
139139
return nil
140140
}
141141
}
142142

143-
func newMetadata(ct ComponentType, id, name, path, docsURL string, options ...medataOption) *Metadata {
143+
func newMetadata(ct ComponentType, id, name, path, docsURL string, options ...metadataOption) *Metadata {
144144
meta := Metadata{
145145
Type: ct,
146146
ID: id,

0 commit comments

Comments
 (0)