Fix linting error:

This commit is contained in:
Juan Font Alonso 2021-07-17 11:17:42 +02:00
parent 96b4d2f391
commit 57c115e60a

View File

@ -116,7 +116,10 @@ var DeleteCmd = &cobra.Command{
prompt := &survey.Confirm{
Message: fmt.Sprintf("Do you want to remove the node %s?", m.Name),
}
survey.AskOne(prompt, &confirm)
err = survey.AskOne(prompt, &confirm)
if err != nil {
return
}
if confirm {
err = h.DeleteMachine(m)