misc: small fix or general refactoring i did not bother commenting

This commit is contained in:
Simone Margaritelli
2024-04-06 10:45:05 -04:00
parent 56effa16a7
commit c0fc052672

View File

@@ -40,7 +40,7 @@ func ExpandPath(path string) (string, error) {
if err != nil {
return "", err
}
// Replace only the first occurence of ~
// Replace only the first occurrence of ~
path = strings.Replace(path, "~", usr.HomeDir, 1)
}
return filepath.Abs(path)