import fixes, removed unnecessary code RIVM-11

This commit is contained in:
vadym 2022-12-07 20:14:39 +02:00
parent 455bc604c5
commit fc8f7a4f39
2 changed files with 4 additions and 32 deletions

View file

@ -143,20 +143,11 @@ func check(peer string) int64 {
}
func get_user_home_path() string {
if runtime.GOOS == "windows" {
path, exists := os.LookupEnv("USERPROFILE")
if exists {
return path
} else {
return ""
}
path, exists := os.LookupEnv("HOME")
if exists {
return path
} else {
path, exists := os.LookupEnv("HOME")
if exists {
return path
} else {
return ""
}
return ""
}
}