all: Run modernize -fix ./...

This commit is contained in:
Bjørn Erik Pedersen
2025-02-26 10:15:04 +01:00
parent b7ae24b9c2
commit 521911a576
141 changed files with 302 additions and 354 deletions

View File

@@ -28,6 +28,7 @@ import (
"github.com/gohugoio/hugo/common/maps"
"github.com/gohugoio/hugo/common/paths"
maps0 "maps"
)
var (
@@ -85,11 +86,9 @@ func (r *metaResource) setName(name string) {
func (r *metaResource) updateParams(params map[string]any) {
if r.params == nil {
r.params = make(map[string]interface{})
}
for k, v := range params {
r.params[k] = v
r.params = make(map[string]any)
}
maps0.Copy(r.params, params)
r.changed = true
}