From c0fc052672acd1c38fd48e72ed2dff18609d7949 Mon Sep 17 00:00:00 2001 From: Simone Margaritelli Date: Sat, 6 Apr 2024 10:45:05 -0400 Subject: [PATCH] misc: small fix or general refactoring i did not bother commenting --- utils/path.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/path.go b/utils/path.go index 53e87c1..a28042f 100644 --- a/utils/path.go +++ b/utils/path.go @@ -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)