mirror of
https://github.com/gohugoio/hugo.git
synced 2025-03-25 01:31:27 +00:00
Add missing formatting directive in Printf call
To make Go Vet happy.
This commit is contained in:
parent
5b19a26556
commit
1583d8d094
1 changed files with 5 additions and 5 deletions
|
@ -267,15 +267,15 @@ func GetCSV(sep string, urlParts ...string) [][]string {
|
||||||
}
|
}
|
||||||
|
|
||||||
func ReadDir(path string) []os.FileInfo {
|
func ReadDir(path string) []os.FileInfo {
|
||||||
wd := ""
|
wd := ""
|
||||||
p := ""
|
p := ""
|
||||||
if viper.GetString("WorkingDir") != "" {
|
if viper.GetString("WorkingDir") != "" {
|
||||||
wd = viper.GetString("WorkingDir")
|
wd = viper.GetString("WorkingDir")
|
||||||
}
|
}
|
||||||
if strings.Contains(path, "..") {
|
if strings.Contains(path, "..") {
|
||||||
jww.ERROR.Printf("Path contains parent directory marker ..\n", path)
|
jww.ERROR.Printf("Path %s contains parent directory marker", path)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
p = filepath.Clean(path)
|
p = filepath.Clean(path)
|
||||||
p = filepath.Join(wd, p)
|
p = filepath.Join(wd, p)
|
||||||
|
|
Loading…
Reference in a new issue