Skip to content

Commit 573fe15

Browse files
committed
addresses PR comments
1 parent edb1c67 commit 573fe15

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

github/resource_github_repository_file.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ func resourceGithubRepositoryFileDelete(d *schema.ResourceData, meta any) error
496496
opts.Branch = &branch
497497
}
498498

499-
_, _, err := client.Repositories.DeleteFile(ctx, owner, repo, file, opts)
499+
_, _, err = client.Repositories.DeleteFile(ctx, owner, repo, file, opts)
500500
return handleArchivedRepoDelete(err, "repository file", file, owner, repo)
501501
}
502502

github/resource_github_repository_file_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ func TestAccGithubRepositoryFile(t *testing.T) {
351351
commit_author = "Terraform User"
352352
commit_email = "[email protected]"
353353
}
354-
`, randomID)
354+
`, acctest.RandStringFromCharSet(5, acctest.CharSetAlphaNum))
355355

356356
archivedConfig := strings.Replace(config,
357357
`auto_init = true`,
@@ -390,7 +390,7 @@ func TestAccGithubRepositoryFile(t *testing.T) {
390390
auto_init = true
391391
archived = true
392392
}
393-
`, randomID),
393+
`, acctest.RandStringFromCharSet(5, acctest.CharSetAlphaNum)),
394394
},
395395
},
396396
})

0 commit comments

Comments
 (0)