Skip to content

Commit

Permalink
chore: Fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
twpayne committed Mar 5, 2024
1 parent 16ce3b8 commit 9b90040
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templatefuncs.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ func NewFuncMap() template.FuncMap {
"prefixLines": prefixLinesTemplateFunc,
"quote": eachString(strconv.Quote),
"regexpReplaceAll": regexpReplaceAllTemplateFunc,
"replaceAll": func(old, new string, v any) any {
"replaceAll": func(old, new_ string, v any) any {
return eachString(func(s string) any {
return strings.ReplaceAll(s, old, new)
return strings.ReplaceAll(s, old, new_)
})(v)
},
"stat": eachString(statTemplateFunc),
Expand Down

0 comments on commit 9b90040

Please sign in to comment.