Skip to content

Commit 60c547a

Browse files
committed
Minor cleanup
Signed-off-by: Timo Sand <[email protected]>
1 parent 9f44757 commit 60c547a

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

github/resource_github_repository_file.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -422,8 +422,6 @@ func resourceGithubRepositoryFileDelete(ctx context.Context, d *schema.ResourceD
422422
repo := d.Get("repository").(string)
423423
file := d.Get("file").(string)
424424

425-
var branch string
426-
427425
opts := resourceGithubRepositoryFileOptions(d)
428426

429427
if *opts.Message == fmt.Sprintf("Add %s", file) {
@@ -443,7 +441,7 @@ func resourceGithubRepositoryFileDelete(ctx context.Context, d *schema.ResourceD
443441
return diag.FromErr(err)
444442
}
445443
}
446-
branch = b.(string)
444+
branch := b.(string)
447445
opts.Branch = github.Ptr(branch)
448446
}
449447

0 commit comments

Comments
 (0)