Un-lambda base.FileSize (#7556)

No need to wrap this.
release/v1.10
Christian Muehlhaeuser 5 years ago committed by Lauris BH
parent 12a098920c
commit 9a965035f0

@ -93,9 +93,7 @@ func NewFuncMap() []template.FuncMap {
"DateFmtShort": func(t time.Time) string {
return t.Format("Jan 02, 2006")
},
"SizeFmt": func(s int64) string {
return base.FileSize(s)
},
"SizeFmt": base.FileSize,
"List": List,
"SubStr": func(str string, start, length int) string {
if len(str) == 0 {

Loading…
Cancel
Save