Skip to content

Commit 823c5b4

Browse files
committed
Code comment in prepareBackend
1 parent be43ec6 commit 823c5b4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

internal/command/meta_backend.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1622,7 +1622,10 @@ func (m *Meta) prepareBackend(root *configs.Module) (backendrun.OperationsBacken
16221622
// there is no config; defaults to local state storage
16231623
opts = &BackendOpts{}
16241624
}
1625-
opts.Init = false // To be explicit- this method should not be used in init commands!
1625+
1626+
// This method should not be used for init commands,
1627+
// so we always set this value as false.
1628+
opts.Init = false
16261629

16271630
// Load the backend
16281631
be, beDiags := m.Backend(opts)

0 commit comments

Comments
 (0)