Skip to content

Commit

Permalink
more gofumpt
Browse files Browse the repository at this point in the history
  • Loading branch information
bwJuniper committed Oct 21, 2024
1 parent 9dcdfda commit 5247b6e
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 6 deletions.
4 changes: 3 additions & 1 deletion apstra/validator/must_be_one_of.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package apstravalidator
import (
"context"
"fmt"

"github.com/hashicorp/terraform-plugin-framework-validators/helpers/validatordiag"
"github.com/hashicorp/terraform-plugin-framework/attr"
"github.com/hashicorp/terraform-plugin-framework/diag"
Expand Down Expand Up @@ -38,7 +39,8 @@ func (o MustBeOneOfValidator) MarkdownDescription(_ context.Context) string {
}

func (o MustBeOneOfValidator) Validate(_ context.Context, req MustBeOneOfValidatorRequest,
resp *MustBeOneOfValidatorResponse) {
resp *MustBeOneOfValidatorResponse,
) {
for _, v := range o.OneOf {
if req.ConfigValue.Equal(v) {
return
Expand Down
3 changes: 2 additions & 1 deletion apstra/validator/parse_speed.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ package apstravalidator
import (
"context"
"fmt"
"strings"

"github.com/hashicorp/terraform-plugin-framework-validators/helpers/validatordiag"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
"strings"
)

var _ validator.String = ParseSpeedValidator{}
Expand Down
1 change: 1 addition & 0 deletions apstra/validator/rack_fcd_must_be.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package apstravalidator
import (
"context"
"fmt"

"github.com/Juniper/apstra-go-sdk/apstra"
"github.com/hashicorp/terraform-plugin-framework-validators/helpers/validatordiag"
"github.com/hashicorp/terraform-plugin-framework/attr"
Expand Down
1 change: 1 addition & 0 deletions apstra/validator/rack_fcd_must_be_when_null.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package apstravalidator
import (
"context"
"fmt"

"github.com/Juniper/apstra-go-sdk/apstra"
"github.com/hashicorp/terraform-plugin-framework-validators/helpers/validatordiag"
"github.com/hashicorp/terraform-plugin-framework/attr"
Expand Down
5 changes: 2 additions & 3 deletions apstra/validator/rack_fcd_must_be_when_value.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package apstravalidator
import (
"context"
"fmt"

"github.com/Juniper/apstra-go-sdk/apstra"
"github.com/hashicorp/terraform-plugin-framework-validators/helpers/validatordiag"
"github.com/hashicorp/terraform-plugin-framework/attr"
Expand All @@ -13,9 +14,7 @@ import (
"github.com/hashicorp/terraform-plugin-framework/types"
)

var (
_ validator.String = RackFabricConnectivityDesignMustBeWhenValueValidator{}
)
var _ validator.String = RackFabricConnectivityDesignMustBeWhenValueValidator{}

type RackFabricConnectivityDesignMustBeWhenValueValidator struct {
fcd apstra.FabricConnectivityDesign
Expand Down
3 changes: 2 additions & 1 deletion apstra/validator/when_value_set.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ package apstravalidator
import (
"context"
"fmt"
"strings"

"github.com/Juniper/terraform-provider-apstra/apstra/utils"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
"strings"
)

var _ NineTypesValidator = whenValueSetValidator{}
Expand Down

0 comments on commit 5247b6e

Please sign in to comment.