♻️ refactor settings page [skip ci]

This commit is contained in:
naiba committed 2022-04-30 23:02:40 +08:00
1 parent 43d6a01a39
commit 8aedc2b6bc
7 files changed
+38 -34

No files matched your search

-11
View File
@@ -68,14 +68,3 @@ func IPDesensitize(ipAddr string) string {
ipAddr = ipv6Desensitize(ipAddr)
return ipAddr
}
func PathExists(path string) (bool, error) {
_, err := os.Stat(path)
if err == nil {
return true, nil
}
if os.IsNotExist(err) {
return false, nil
}
return false, err
}