We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 989da6c commit c072246Copy full SHA for c072246
src/config/config.go
@@ -78,17 +78,17 @@ func resolveConfigPath(configPath string) string {
78
return replaceTildePrefixWithHomeDir(configPath)
79
}
80
81
-func replaceTildePrefixWithHomeDir(path string) string {
82
- if !strings.HasPrefix(path, "~") {
83
- return path
+func replaceTildePrefixWithHomeDir(dir string) string {
+ if !strings.HasPrefix(dir, "~") {
+ return dir
84
85
86
- rem := path[1:]
+ rem := dir[1:]
87
if len(rem) == 0 || isSeparator(rem[0]) {
88
return home() + rem
89
90
91
92
93
94
func isSeparator(c uint8) bool {
0 commit comments