Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/unarxiv/cvpm
Browse files Browse the repository at this point in the history
  • Loading branch information
xzyaoi committed Sep 29, 2018
2 parents e747b2d + cd6838f commit 1ea3af1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli/config.go
Expand Up @@ -26,12 +26,12 @@ var apiURL = "http://192.168.1.12:8080/"
func isPathExists(path string) (bool, error) {
_, err := os.Stat(path)
if err != nil {
return true, nil
return false, nil
}
if os.IsNotExist(err) {
return false, nil
}
return false, err
return true, err
}

func readConfig() cvpmConfig {
Expand Down

0 comments on commit 1ea3af1

Please sign in to comment.