Fix missing else statement in addonsEnableCmd

上级 7b684b88
......@@ -37,8 +37,9 @@ var addonsEnableCmd = &cobra.Command{
err := Set(addon, "true")
if err != nil {
fmt.Fprintln(os.Stdout, err)
} else {
fmt.Fprintln(os.Stdout, fmt.Sprintf("%s was successfully enabled", addon))
}
fmt.Fprintln(os.Stdout, fmt.Sprintf("%s was successfully enabled", addon))
},
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册