From 05153438fd94fce5b48d074bb5eed9386b0b744e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=8C=A6=E5=8D=97=E8=B7=AF=E4=B9=8B=E8=8A=B1?= <46831212+ComradeProgrammer@users.noreply.github.com> Date: Fri, 30 Aug 2024 22:44:05 +0200 Subject: [PATCH] Update cmd/minikube/cmd/delete.go Co-authored-by: Steven Powell <44844360+spowelljr@users.noreply.github.com> --- cmd/minikube/cmd/delete.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/minikube/cmd/delete.go b/cmd/minikube/cmd/delete.go index 8e0935fab5ee..2d17eb3f6675 100644 --- a/cmd/minikube/cmd/delete.go +++ b/cmd/minikube/cmd/delete.go @@ -751,7 +751,7 @@ func deleteKnownHosts() { klog.Warningf("error reading machines in minikube home: %v", err) return } - if _, err := os.Stat(knownHosts); err == nil { + if _, err := os.Stat(knownHosts); err != nil { klog.Warningf("no host files found when cleaning host files: %v", err) return }