Skip to content

Commit

Permalink
chore: fix some function name in comment
Browse files Browse the repository at this point in the history
Signed-off-by: lvyaoting <[email protected]>
  • Loading branch information
lvyaoting committed Dec 5, 2024
1 parent f1f70ac commit 1eb3871
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/apis/pipeline/v1/param_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ func (ps ParamSpecs) ValidateNoDuplicateNames() *apis.FieldError {
return errs
}

// validateParamEnum validates feature flag, duplication and allowed types for Param Enum
// validateParamEnums validates feature flag, duplication and allowed types for Param Enum
func (ps ParamSpecs) validateParamEnums(ctx context.Context) *apis.FieldError {
var errs *apis.FieldError
for _, p := range ps {
Expand Down
2 changes: 1 addition & 1 deletion pkg/apis/pipeline/v1beta1/param_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ func (ps ParamSpecs) validateNoDuplicateNames() *apis.FieldError {
return errs
}

// validateParamEnum validates feature flag, duplication and allowed types for Param Enum
// validateParamEnums validates feature flag, duplication and allowed types for Param Enum
func (ps ParamSpecs) validateParamEnums(ctx context.Context) *apis.FieldError {
var errs *apis.FieldError
for _, p := range ps {
Expand Down
2 changes: 1 addition & 1 deletion test/featureflags.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func requireAnyGate(gates map[string]string) func(context.Context, *testing.T, *
}
}

// requireAllgates returns a setup func that will skip the current
// requireAllGates returns a setup func that will skip the current
// test if all of the feature-flags in the given map don't match
// what's in the feature-flags ConfigMap. It will fatally fail
// the test if it cannot get the feature-flag configmap.
Expand Down

0 comments on commit 1eb3871

Please sign in to comment.