Skip to content

Commit 309f8d3

Browse files
committed
Apply linter and fmt
1 parent 121fb86 commit 309f8d3

2 files changed

Lines changed: 9 additions & 10 deletions

File tree

github/resource_github_organization_ruleset.go

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ func resourceGithubOrganizationRuleset() *schema.Resource {
9494
Type: schema.TypeList,
9595
Optional: true,
9696
MaxItems: 1,
97-
Description: "Parameters for an organization ruleset condition.The branch and tag rulesets conditions object should contain both repository_name and ref_name properties, or both repository_id and ref_name properties, or both repository_property and ref_name properties. The push rulesets conditions object does not require the ref_name property.",
97+
Description: "Parameters for an organization ruleset condition.The branch and tag rulesets conditions object should contain both repository_name and ref_name properties, or both repository_id and ref_name properties, or both repository_property and ref_name properties. The push rulesets conditions object does not require the ref_name property.",
9898
Elem: &schema.Resource{
9999
Schema: map[string]*schema.Schema{
100100
"ref_name": {
@@ -151,10 +151,10 @@ func resourceGithubOrganizationRuleset() *schema.Resource {
151151
},
152152
},
153153
"source": {
154-
Type: schema.TypeString,
155-
Optional: true,
156-
Description: "The source of the repository property. Defaults to 'custom' if not specified. Can be one of: custom, system",
157-
Default: "custom",
154+
Type: schema.TypeString,
155+
Optional: true,
156+
Description: "The source of the repository property. Defaults to 'custom' if not specified. Can be one of: custom, system",
157+
Default: "custom",
158158
ValidateDiagFunc: validation.ToDiagFunc(validation.StringInSlice([]string{"custom", "system"}, false)),
159159
},
160160
},
@@ -180,10 +180,10 @@ func resourceGithubOrganizationRuleset() *schema.Resource {
180180
},
181181
},
182182
"source": {
183-
Type: schema.TypeString,
184-
Optional: true,
185-
Description: "The source of the repository property. Defaults to 'custom' if not specified. Can be one of: custom, system",
186-
Default: "custom",
183+
Type: schema.TypeString,
184+
Optional: true,
185+
Description: "The source of the repository property. Defaults to 'custom' if not specified. Can be one of: custom, system",
186+
Default: "custom",
187187
ValidateDiagFunc: validation.ToDiagFunc(validation.StringInSlice([]string{"custom", "system"}, false)),
188188
},
189189
},

github/util_ruleset_validation.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,6 @@ func validateConditionsFieldForBranchAndTagTargets(ctx context.Context, target g
171171
return fmt.Errorf("ref_name must be set for %s target", target)
172172
}
173173

174-
175174
tflog.Debug(ctx, fmt.Sprintf("Conditions validation passed for %s target", target))
176175
return nil
177176
}

0 commit comments

Comments
 (0)