chore(config): add stackoverflow comments
parent
9a231b1d63
commit
161aff2bb2
|
@ -125,6 +125,7 @@ func removeAndCopy(from, to string, fn copyFn) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
// replace ~
|
// replace ~
|
||||||
|
// https://stackoverflow.com/a/17609894
|
||||||
func replaceHomeSymbol(path string) (string, error) {
|
func replaceHomeSymbol(path string) (string, error) {
|
||||||
if path == "" || path[0] != homeSymbol {
|
if path == "" || path[0] != homeSymbol {
|
||||||
return path, nil
|
return path, nil
|
||||||
|
|
Loading…
Reference in New Issue