all: fix go vet warnings
This commit is contained in:
@ -34,7 +34,7 @@ func MakeName(name, version string) string {
|
||||
|
||||
func ExpandHomePath(p string) (path string) {
|
||||
path = p
|
||||
sep := fmt.Sprintf("%s", os.PathSeparator)
|
||||
sep := string(os.PathSeparator)
|
||||
|
||||
// Check in case of paths like "/something/~/something/"
|
||||
if len(p) > 1 && p[:1+len(sep)] == "~"+sep {
|
||||
|
Reference in New Issue
Block a user