From de3927dee16828596f4c505c73aa488711307cc5 Mon Sep 17 00:00:00 2001 From: Kevin Lyda <kevin@ie.suberic.net> Date: Wed, 25 Jan 2017 00:05:49 +0000 Subject: [PATCH] Add a comment for ExpandTilde. --- client/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/config.go b/client/config.go index 209d609c..e1b70f68 100644 --- a/client/config.go +++ b/client/config.go @@ -28,7 +28,7 @@ func setDefaults() { viper.SetDefault("validateTLSCertificate", true) } -// Expand ~ and ~user for a given path. +// ExpandTilde expands ~ and ~user for a given path. func ExpandTilde(path string) string { re := regexp.MustCompile("^~([^/]*)(/.*)") if m := re.FindStringSubmatch(path); len(m) > 0 { -- GitLab