♻️ refactor settings page [skip ci]

This commit is contained in:
naiba
2022-04-30 23:02:40 +08:00
parent c2625240c4
commit 2fc4939878
7 changed files with 38 additions and 34 deletions

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
}