Skip to content

Commit d4ba6e8

Browse files
authored
internal: Bundle: replace *Plan with Plan (#3099)
## Why Pointer is unnecessary. User code already checks Plan.Path == "" rather than Path == nil.
1 parent ba4fa91 commit d4ba6e8

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

bundle/bundle.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ type Bundle struct {
101101
// Stores the locker responsible for acquiring/releasing a deployment lock.
102102
Locker *locker.Locker
103103

104-
Plan *deployplan.Plan
104+
Plan deployplan.Plan
105105

106106
// if true, we skip approval checks for deploy, destroy resources and delete
107107
// files

bundle/deploy/terraform/plan.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ func (p *plan) Apply(ctx context.Context, b *bundle.Bundle) diag.Diagnostics {
5151
}
5252

5353
// Set plan in main bundle struct for downstream mutators
54-
b.Plan = &deployplan.Plan{
54+
b.Plan = deployplan.Plan{
5555
Path: planPath,
5656
IsEmpty: !notEmpty,
5757
}

0 commit comments

Comments
 (0)