mirror of
https://github.com/juanfont/headscale.git
synced 2025-08-11 21:17:35 +00:00
Fix linting error:
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user