Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
bassosimone committed May 17, 2024
1 parent 4fefab5 commit 26ceb42
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions cmd/ooniprobe/internal/cli/rm/rm.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Expand Down Expand Up @@ -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")
}
Expand Down

0 comments on commit 26ceb42

Please sign in to comment.