Skip to content

Commit

Permalink
Fix TempInt naming bug
Browse files Browse the repository at this point in the history
  • Loading branch information
emilingerslev committed Oct 1, 2018
1 parent e6cc159 commit 5d5bf2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/templates/funcs.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func GetFuncMap() template.FuncMap {
"array": TmplArray,
"objectArray": TmplObjectArray,
"strConst": TmplStrConst,
"int": tmplInt,
"int": TmplInt,
"is": TmplIs,
"isnt": TmplIsnt,
}
Expand Down Expand Up @@ -68,7 +68,7 @@ func TmplString(path string, input interface{}) string {
}

// TODO: Add description
func tmplInt(path string, input interface{}) int {
func TmplInt(path string, input interface{}) int {
value := TmplGet(path, input)
if value == nil {
return 0
Expand Down

0 comments on commit 5d5bf2c

Please sign in to comment.