mirror of
https://github.com/bettercap/bettercap
synced 2025-08-19 04:59:25 -07:00
fix: fixed typo in comment
This commit is contained in:
parent
42079a1ee7
commit
b3ccec269a
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ func ExpandPath(path string) (string, error) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
// Replace only the first occurence of ~
|
// Replace only the first occurrence of ~
|
||||||
path = strings.Replace(path, "~", usr.HomeDir, 1)
|
path = strings.Replace(path, "~", usr.HomeDir, 1)
|
||||||
}
|
}
|
||||||
return filepath.Abs(path)
|
return filepath.Abs(path)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue