err1 -> err

This commit is contained in:
Richard Chen 2018-08-23 09:09:44 +08:00
parent f52020945d
commit b440b57fbf
No known key found for this signature in database
GPG Key ID: C789FC6FC2E7BD21

View File

@ -98,8 +98,8 @@ func DetectionPath(gopath string) string {
arrPath := strings.FieldsFunc(path,split)
for _,content := range arrPath {
fullPath := filepath.Join(content, "src", "github.com", "v2ray", "domain-list-community", "data")
_, err1 := os.Stat(fullPath)
if err1 == nil || os.IsExist(err1) {
_, err := os.Stat(fullPath)
if err == nil || os.IsExist(err) {
return fullPath
}
}