Skip to content

Commit 0b4d3d5

Browse files
committed
chore: minor refactoring for consistency
1 parent b7ff021 commit 0b4d3d5

6 files changed

Lines changed: 187 additions & 34 deletions

File tree

internal/provider/boolvalidator/requires_true_if_configured.go renamed to internal/boolvalidator/requires_true_if_configured.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import (
88
)
99

1010
// RequiresTrueIfConfigured checks that any Bool values in the paths described by the
11-
// path.Expression are true if the current attribute value is configured to 'true'.
12-
// If you require the value described the the path.Expression to be set,
11+
// path.Expression are true if the current attribute value is configured.
12+
// If you require the value described by the path.Expression to be set,
1313
// combine this validator with the "AlsoRequires" validator.
1414
func RequiresTrueIfConfigured(expressions ...path.Expression) validator.Bool {
1515
return &schemavalidator.RequiresTrueIfConfiguredValidator{

internal/provider/listvalidator/requires_true_if_configured.go renamed to internal/listvalidator/requires_true_if_configured.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ import (
1010
// RequiresTrueIfConfigured checks that any Bool values in the paths described by the
1111
// path.Expression are true if the current attribute value is configured to a non-empty
1212
// list.
13+
// If you require the value described by the path.Expression to be set,
14+
// combine this validator with the "AlsoRequires" validator.
1315
func RequiresTrueIfConfigured(expressions ...path.Expression) validator.List {
1416
return &schemavalidator.RequiresTrueIfConfiguredValidator{
1517
Expressions: expressions,

internal/provider/branch_protection_resource.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ import (
2727

2828
"codeberg.org/mvdkleijn/forgejo-sdk/forgejo/v3"
2929

30-
forgejoBoolValidator "terraform-provider-forgejo/internal/provider/boolvalidator"
31-
forgejoListValidator "terraform-provider-forgejo/internal/provider/listvalidator"
32-
forgejoSetValidator "terraform-provider-forgejo/internal/provider/setvalidator"
30+
forgejoBoolValidator "terraform-provider-forgejo/internal/boolvalidator"
31+
forgejoListValidator "terraform-provider-forgejo/internal/listvalidator"
32+
forgejoSetValidator "terraform-provider-forgejo/internal/setvalidator"
3333
)
3434

3535
// Ensure the implementation satisfies the expected interfaces.

0 commit comments

Comments
 (0)