Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
refactor: Apply suggestion from @radeksimko
Co-authored-by: Radek Simko <[email protected]>
  • Loading branch information
SarahFrench and radeksimko authored Dec 9, 2025
commit e6218a5936fdee9e36aa71edf353b42c96738ac1
4 changes: 2 additions & 2 deletions internal/command/meta_backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,8 @@ func (m *Meta) Backend(opts *BackendOpts) (backendrun.OperationsBackend, tfdiags
// the user, since the local backend should only be used when learning or
// in exceptional cases and so it's better to help the user learn that
// by introducing it as a concept.
backendInUse := opts.StateStoreConfig == nil
if backendInUse && m.backendConfigState == nil {
stateStoreInUse := opts.StateStoreConfig != nil
if !stateStoreInUse && m.backendConfigState == nil {
// NOTE: This synthetic object is intentionally _not_ retained in the
// on-disk record of the backend configuration, which was already dealt
// with inside backendFromConfig, because we still need that codepath
Expand Down