Skip to content

Commit

Permalink
Handle more file errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Piccirello committed Jan 18, 2020
1 parent 4e58882 commit f37df92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/utils/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func HomeDir() string {

// Exists whether path exists and the user has permission
func Exists(path string) bool {
if _, err := os.Stat(path); os.IsNotExist(err) || os.IsPermission(err) {
if _, err := os.Stat(path); err != nil {
return false
}
return true
Expand Down

0 comments on commit f37df92

Please sign in to comment.