diff --git a/core/core.go b/core/core.go index 072ae821..ffbcf8e2 100644 --- a/core/core.go +++ b/core/core.go @@ -89,7 +89,8 @@ func ExpandPath(path string) (string, error) { // Check if path is empty if path != "" { if strings.HasPrefix(path, "~") { - if usr, err := user.Current(); err != nil { + usr, err := user.Current() + if err != nil { return "", err } // Replace only the first occurrence of ~