Skip to content

Commit 9a96503

Browse files
mueslilafriks
authored andcommitted
Un-lambda base.FileSize (#7556)
No need to wrap this.
1 parent 12a0989 commit 9a96503

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

modules/templates/helper.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,8 @@ func NewFuncMap() []template.FuncMap {
9393
"DateFmtShort": func(t time.Time) string {
9494
return t.Format("Jan 02, 2006")
9595
},
96-
"SizeFmt": func(s int64) string {
97-
return base.FileSize(s)
98-
},
99-
"List": List,
96+
"SizeFmt": base.FileSize,
97+
"List": List,
10098
"SubStr": func(str string, start, length int) string {
10199
if len(str) == 0 {
102100
return ""

0 commit comments

Comments
 (0)