Skip to content

Commit

Permalink
Un-lambda base.FileSize (#7556)
Browse files Browse the repository at this point in the history
No need to wrap this.
  • Loading branch information
muesli authored and lafriks committed Jul 22, 2019
1 parent 12a0989 commit 9a96503
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions modules/templates/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 ""
Expand Down

0 comments on commit 9a96503

Please sign in to comment.