aboutsummaryrefslogtreecommitdiffstats
path: root/common/path.go
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2016-04-15 19:45:15 +0800
committerFelix Lange <fjl@twurst.com>2016-04-15 19:45:15 +0800
commit6197fbf8d70c1aa96c3e87de91ff3f46f454c1ea (patch)
tree1b3b3677892e2d94400f3604dc6c2dda4c05ccd4 /common/path.go
parent5c17b2f5211ec98a87140c874483681de4e34391 (diff)
parentbf5ae502ef179490a039c9bcd66d32cd5a7ce5e9 (diff)
downloaddexon-6197fbf8d70c1aa96c3e87de91ff3f46f454c1ea.tar
dexon-6197fbf8d70c1aa96c3e87de91ff3f46f454c1ea.tar.gz
dexon-6197fbf8d70c1aa96c3e87de91ff3f46f454c1ea.tar.bz2
dexon-6197fbf8d70c1aa96c3e87de91ff3f46f454c1ea.tar.lz
dexon-6197fbf8d70c1aa96c3e87de91ff3f46f454c1ea.tar.xz
dexon-6197fbf8d70c1aa96c3e87de91ff3f46f454c1ea.tar.zst
dexon-6197fbf8d70c1aa96c3e87de91ff3f46f454c1ea.zip
Merge pull request #2458 from fjl/go-vet
all: fix go vet warnings
Diffstat (limited to 'common/path.go')
-rw-r--r--common/path.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/path.go b/common/path.go
index 75a8c1a3e..cbcd13c4f 100644
--- a/common/path.go
+++ b/common/path.go
@@ -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 {