From 88c3950785d09b535687e59de2d8d9cb753f24a5 Mon Sep 17 00:00:00 2001 From: Simone Basso Date: Fri, 17 May 2024 14:44:24 +0200 Subject: [PATCH] Apply suggestions from code review --- cmd/ooniprobe/internal/cli/rm/rm.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/ooniprobe/internal/cli/rm/rm.go b/cmd/ooniprobe/internal/cli/rm/rm.go index b4c95a091..79edbbce3 100644 --- a/cmd/ooniprobe/internal/cli/rm/rm.go +++ b/cmd/ooniprobe/internal/cli/rm/rm.go @@ -20,7 +20,7 @@ func deleteAll(d *database.Database, skipInteractive bool) error { Options: []string{"true", "false"}, Default: "false", } - _ = survey.AskOne(confirm, &answer, nil) // no error checking: we rely on the default + _ = survey.AskOne(confirm, &answer, nil) // no error checking: we rely on the default value if answer == "false" { return errors.New("canceled by user") } @@ -80,7 +80,7 @@ func init() { Options: []string{"true", "false"}, Default: "false", } - _ = survey.AskOne(confirm, &answer, nil) // no error checking: we rely on the default + _ = survey.AskOne(confirm, &answer, nil) // no error checking: we rely on the default value if answer == "false" { return errors.New("canceled by user") }