diff --git a/pkg/cmd/config.go b/pkg/cmd/config.go index 615b38a8f92..f88448bf080 100644 --- a/pkg/cmd/config.go +++ b/pkg/cmd/config.go @@ -856,8 +856,8 @@ func (c *Config) defaultPreApplyFunc( if c.interactive { prompt := fmt.Sprintf("Apply %s", targetRelPath) - actualContents := actualEntryState.Contents() var choices []string + actualContents := actualEntryState.Contents() targetContents := targetEntryState.Contents() if actualContents != nil || targetContents != nil { choices = append(choices, "diff")