mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-29 22:29:56 +02:00
all: Run modernize -fix ./...
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user