Skip to content

Commit c072246

Browse files
fix(lint): rename shadowed variable
1 parent 989da6c commit c072246

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/config/config.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,17 +78,17 @@ func resolveConfigPath(configPath string) string {
7878
return replaceTildePrefixWithHomeDir(configPath)
7979
}
8080

81-
func replaceTildePrefixWithHomeDir(path string) string {
82-
if !strings.HasPrefix(path, "~") {
83-
return path
81+
func replaceTildePrefixWithHomeDir(dir string) string {
82+
if !strings.HasPrefix(dir, "~") {
83+
return dir
8484
}
8585

86-
rem := path[1:]
86+
rem := dir[1:]
8787
if len(rem) == 0 || isSeparator(rem[0]) {
8888
return home() + rem
8989
}
9090

91-
return path
91+
return dir
9292
}
9393

9494
func isSeparator(c uint8) bool {

0 commit comments

Comments
 (0)