Skip to content

Commit

Permalink
put function signature on single line
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismarget-j committed Oct 21, 2024
1 parent 5247b6e commit 850ee90
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions apstra/validator/must_be_one_of.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,7 @@ func (o MustBeOneOfValidator) MarkdownDescription(_ context.Context) string {
return fmt.Sprintf("Ensure that the value is one of the following : %s", o.OneOf)
}

func (o MustBeOneOfValidator) Validate(_ context.Context, req MustBeOneOfValidatorRequest,
resp *MustBeOneOfValidatorResponse,
) {
func (o MustBeOneOfValidator) Validate(_ context.Context, req MustBeOneOfValidatorRequest, resp *MustBeOneOfValidatorResponse) {
for _, v := range o.OneOf {
if req.ConfigValue.Equal(v) {
return
Expand Down

0 comments on commit 850ee90

Please sign in to comment.