File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
internal/cli/atlas/backup/schedule Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -66,14 +66,14 @@ func DeleteBuilder() *cobra.Command {
6666 Example : fmt .Sprintf (` # Remove all backup schedules for the cluster named Cluster0:
6767 %s backup schedule delete Cluster0` , cli .ExampleAtlasEntryPoint ()),
6868 PreRunE : func (cmd * cobra.Command , args []string ) error {
69- if err := opts .PreRunE (opts .ValidateProjectID , opts .initStore (cmd .Context ())); err != nil {
70- return err
71- }
7269 opts .Entry = args [0 ]
73- return opts .Prompt ()
70+ return opts .PreRunE (
71+ opts .ValidateProjectID ,
72+ opts .initStore (cmd .Context ()),
73+ )
7474 },
7575 RunE : func (cmd * cobra.Command , args []string ) error {
76- if err := opts .PromptWithMessage (fmt . Sprintf ( confirmationMessage , opts . Entry ) ); err != nil {
76+ if err := opts .PromptWithMessage (confirmationMessage ); err != nil {
7777 return err
7878 }
7979 return opts .Run ()
You can’t perform that action at this time.
0 commit comments