diff --git a/pkg/minikube/config/profile.go b/pkg/minikube/config/profile.go index b0ddc2c8e6b7..4456b7779ff2 100644 --- a/pkg/minikube/config/profile.go +++ b/pkg/minikube/config/profile.go @@ -301,7 +301,7 @@ func profileDirs(miniHome ...string) (dirs []string, err error) { } pRootDir := filepath.Join(miniPath, "profiles") items, err := os.ReadDir(pRootDir) - if err == os.IsNotExist(err) { + if os.IsNotExist(err) { return dirs, &ErrNotExist{fmt.Sprintf("profiles dir %s does not exist", pRootDir)} }