diff options
author | Christian Muehlhaeuser <muesli@gmail.com> | 2019-07-22 10:58:26 +0200 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2019-07-22 11:58:26 +0300 |
commit | 9a965035f0e485b2f4b69b76441949c264499c2b (patch) | |
tree | 6c480cfada984ffa63af347506d6d6ef2790a27c /modules/templates | |
parent | 12a098920c03d147959516fda59a6dd6fe474a3c (diff) | |
download | gitea-9a965035f0e485b2f4b69b76441949c264499c2b.tar.gz gitea-9a965035f0e485b2f4b69b76441949c264499c2b.zip |
Un-lambda base.FileSize (#7556)
No need to wrap this.
Diffstat (limited to 'modules/templates')
-rw-r--r-- | modules/templates/helper.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/modules/templates/helper.go b/modules/templates/helper.go index 5a3969c098..ceb4501c5b 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 "" |