Skip to content

Commit

Permalink
fix a bug in v0.0.2 release
Browse files Browse the repository at this point in the history
  • Loading branch information
xzyaoi committed Sep 29, 2018
1 parent e32f5ec commit cd6838f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli/config.go
Original file line number Diff line number Diff line change
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 cd6838f

Please sign in to comment.