Skip to content

Commit f85559c

Browse files
authored
fix(zetaclient): tolerate absolute path in GetPath() (zeta-chain#2423)
1 parent 1e4f66c commit f85559c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

zetaclient/config/config.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,10 @@ func GetPath(inputPath string) string {
8888
return ""
8989
}
9090
path[0] = home
91+
return filepath.Join(path...)
9192
}
9293
}
93-
return filepath.Join(path...)
94+
return inputPath
9495
}
9596

9697
// ContainRestrictedAddress returns true if any one of the addresses is restricted

0 commit comments

Comments
 (0)