From 6e6ce37ec5a2c2e6d1d6cc41a1ad87bcb1884ba4 Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Mon, 22 Jul 2019 00:34:39 +0200 Subject: [PATCH] Un-lambda base.FileSize 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 5a3969c098f83..ceb4501c5b420 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 ""