summaryrefslogtreecommitdiffstats
path: root/modules/templates/helper.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/templates/helper.go')
-rw-r--r--modules/templates/helper.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/templates/helper.go b/modules/templates/helper.go
index f65b8c6856..0c56ae0e0a 100644
--- a/modules/templates/helper.go
+++ b/modules/templates/helper.go
@@ -121,8 +121,8 @@ func NewFuncMap() []template.FuncMap {
var path []string
index := strings.LastIndex(str, "/")
if index != -1 && index != len(str) {
- path = append(path, string(str[0:index+1]))
- path = append(path, string(str[index+1:]))
+ path = append(path, str[0:index+1])
+ path = append(path, str[index+1:])
} else {
path = append(path, str)
}