mirror of
https://github.com/gohugoio/hugo.git
synced 2026-08-24 15:28:54 +00:00
all: Run go fix ./...
This commit is contained in:
@@ -214,8 +214,8 @@ func (t *TemplateFuncsNamespace) toJSON(ctx context.Context) ([]byte, error) {
|
||||
return nil, nil
|
||||
}
|
||||
ctxType := reflect.TypeOf(tctx)
|
||||
for i := range ctxType.NumMethod() {
|
||||
method := ctxType.Method(i)
|
||||
for method := range ctxType.Methods() {
|
||||
method := method
|
||||
if ignoreFuncs[method.Name] {
|
||||
continue
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user