From 26ceb42548fa34a1b7d683d13a1f1a41b6f6244c Mon Sep 17 00:00:00 2001 From: Simone Basso Date: Fri, 17 May 2024 14:42:41 +0200 Subject: [PATCH] x --- cmd/ooniprobe/internal/cli/rm/rm.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/cmd/ooniprobe/internal/cli/rm/rm.go b/cmd/ooniprobe/internal/cli/rm/rm.go index 39cd7e31c..b4c95a091 100644 --- a/cmd/ooniprobe/internal/cli/rm/rm.go +++ b/cmd/ooniprobe/internal/cli/rm/rm.go @@ -20,9 +20,7 @@ func deleteAll(d *database.Database, skipInteractive bool) error { Options: []string{"true", "false"}, Default: "false", } - if err := survey.AskOne(confirm, &answer, nil); err != nil { - return err - } + _ = survey.AskOne(confirm, &answer, nil) // no error checking: we rely on the default if answer == "false" { return errors.New("canceled by user") } @@ -82,9 +80,7 @@ func init() { Options: []string{"true", "false"}, Default: "false", } - if err := survey.AskOne(confirm, &answer, nil); err != nil { - return err - } + _ = survey.AskOne(confirm, &answer, nil) // no error checking: we rely on the default if answer == "false" { return errors.New("canceled by user") }