Skip to content

Commit 47d3a26

Browse files
committed
Comment arguments instead of renaming them
1 parent 9510487 commit 47d3a26

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

gitlab/resource_gitlab_project.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ var resourceGitLabProjectSchema = map[string]*schema.Schema{
3838
"default_branch": {
3939
Type: schema.TypeString,
4040
Optional: true,
41-
DiffSuppressFunc: func(k, current, planned string, d *schema.ResourceData) bool {
42-
old := current // current value on GitLab side
43-
new := planned // value that Terraform plans to set there
41+
DiffSuppressFunc: func(k, old, new string, d *schema.ResourceData) bool {
42+
// `old` is the current value on GitLab side
43+
// `new` is the value that Terraform plans to set there
4444

4545
log.Printf("[DEBUG] default_branch DiffSuppressFunc old new")
4646
log.Printf("[DEBUG] (%T) %#v, (%T) %#v", old, old, new, new)

0 commit comments

Comments
 (0)