🔥 remove useless code

This commit is contained in:
微凉
2021-11-29 21:30:52 +08:00
parent 71b1517de7
commit 50a02a7af7
3 changed files with 9 additions and 4 deletions

View File

@ -94,7 +94,7 @@ func GetPW(path string) string {
if !conf.CheckParent {
return ""
}
if path == "/" || path == "\\" {
if path == "/" {
return ""
}
return GetPW(utils.Dir(path))