mirror of
https://github.com/evilsocket/arc.git
synced 2024-05-26 22:37:37 +03:00
misc: small fix or general refactoring i did not bother commenting
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user