From 9a965035f0e485b2f4b69b76441949c264499c2b Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Mon, 22 Jul 2019 10:58:26 +0200 Subject: [PATCH] Un-lambda base.FileSize (#7556) No need to wrap this. --- modules/templates/helper.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/modules/templates/helper.go b/modules/templates/helper.go index 5a3969c09..ceb4501c5 100644 --- a/modules/templates/helper.go +++ b/modules/templates/helper.go @@ -93,10 +93,8 @@ 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) - }, - "List": List, + "SizeFmt": base.FileSize, + "List": List, "SubStr": func(str string, start, length int) string { if len(str) == 0 { return ""