Skip to content

Commit

Permalink
Fix wrong comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
raghavendra-talur authored Jul 18, 2023
1 parent f8c7125 commit b9aa2a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/minikube/config/profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)}
}

Expand Down

0 comments on commit b9aa2a0

Please sign in to comment.