mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-21 21:35:28 +02:00
all: Run modernize -fix ./...
This commit is contained in:
@@ -213,7 +213,7 @@ func (t *TemplateFuncsNamespace) toJSON(ctx context.Context) ([]byte, error) {
|
||||
return nil, nil
|
||||
}
|
||||
ctxType := reflect.TypeOf(tctx)
|
||||
for i := 0; i < ctxType.NumMethod(); i++ {
|
||||
for i := range ctxType.NumMethod() {
|
||||
method := ctxType.Method(i)
|
||||
if ignoreFuncs[method.Name] {
|
||||
continue
|
||||
|
Reference in New Issue
Block a user