PR Feedback: cleanup variable setter

This commit is contained in:
Barrett Clark 2021-10-18 09:03:38 -05:00 committed by Chris Arcand
parent f8256f6634
commit 0cd9490838

View File

@ -306,11 +306,9 @@ func (c *InitCommand) Run(args []string) int {
// still the final thing shown.
c.showDiagnostics(diags)
_, cloud := back.(*cloud.Cloud)
output := ""
output := outputInitSuccess
if cloud {
output = outputInitSuccessCloud
} else {
output = outputInitSuccess
}
c.Ui.Output(c.Colorize().Color(strings.TrimSpace(output)))