summaryrefslogtreecommitdiffstats
path: root/tpl
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2015-08-06 22:46:01 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2015-08-06 22:46:35 +0200
commit1583d8d094f11b267ba7b9bd1ebbdfa460345beb (patch)
treef1e27837415d60ec6768598453c9afc7a61300f5 /tpl
parent5b19a26556cc7a533b0e2559e5f1740b892a2f53 (diff)
Add missing formatting directive in Printf call
To make Go Vet happy.
Diffstat (limited to 'tpl')
-rw-r--r--tpl/template_resources.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/tpl/template_resources.go b/tpl/template_resources.go
index f49e7df6f..1fe94af88 100644
--- a/tpl/template_resources.go
+++ b/tpl/template_resources.go
@@ -267,15 +267,15 @@ func GetCSV(sep string, urlParts ...string) [][]string {
}
func ReadDir(path string) []os.FileInfo {
- wd := ""
- p := ""
+ wd := ""
+ p := ""
if viper.GetString("WorkingDir") != "" {
wd = viper.GetString("WorkingDir")
}
- if strings.Contains(path, "..") {
- jww.ERROR.Printf("Path contains parent directory marker ..\n", path)
+ if strings.Contains(path, "..") {
+ jww.ERROR.Printf("Path %s contains parent directory marker", path)
return nil
- }
+ }
p = filepath.Clean(path)
p = filepath.Join(wd, p)