提交 31cf3f2d 编写于 作者: M Medya Gh

missing err check

上级 aa91f39f
...@@ -97,7 +97,9 @@ func runDelete(cmd *cobra.Command, args []string) { ...@@ -97,7 +97,9 @@ func runDelete(cmd *cobra.Command, args []string) {
profileFlag := viper.GetString(config.MachineProfile) profileFlag := viper.GetString(config.MachineProfile)
validProfiles, invalidProfiles, err := pkg_config.ListProfiles() validProfiles, invalidProfiles, err := pkg_config.ListProfiles()
glog.Warningf("Couldn't find any profiles in minikube home %q: %v", localpath.MiniPath(), err) if err != nil {
glog.Warningf("Couldn't find any profiles in minikube home %q: %v", localpath.MiniPath(), err)
}
profilesToDelete := append(validProfiles, invalidProfiles...) profilesToDelete := append(validProfiles, invalidProfiles...)
// in the case user has more than 1 profile and runs --purge // in the case user has more than 1 profile and runs --purge
// to prevent abandoned VMs/containers, force user to run with delete --all // to prevent abandoned VMs/containers, force user to run with delete --all
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册