From 57c115e60a40a380613dd95175eae42a5635d514 Mon Sep 17 00:00:00 2001 From: Juan Font Alonso Date: Sat, 17 Jul 2021 11:17:42 +0200 Subject: [PATCH] Fix linting error: --- cmd/headscale/cli/nodes.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cmd/headscale/cli/nodes.go b/cmd/headscale/cli/nodes.go index 422eac10..92dd6690 100644 --- a/cmd/headscale/cli/nodes.go +++ b/cmd/headscale/cli/nodes.go @@ -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)