chore(config): add stackoverflow comments

main
Tran Hau 2021-01-18 16:42:35 +07:00
parent 9a231b1d63
commit 161aff2bb2
1 changed files with 1 additions and 0 deletions

View File

@ -125,6 +125,7 @@ func removeAndCopy(from, to string, fn copyFn) error {
}
// replace ~
// https://stackoverflow.com/a/17609894
func replaceHomeSymbol(path string) (string, error) {
if path == "" || path[0] != homeSymbol {
return path, nil