diff options
Diffstat (limited to 'tpl/transform/unmarshal.go')
-rw-r--r-- | tpl/transform/unmarshal.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tpl/transform/unmarshal.go b/tpl/transform/unmarshal.go index 340235fa4..f5ff63585 100644 --- a/tpl/transform/unmarshal.go +++ b/tpl/transform/unmarshal.go @@ -15,7 +15,7 @@ package transform import ( "fmt" - "io/ioutil" + "io" "strings" "github.com/gohugoio/hugo/resources/resource" @@ -83,7 +83,7 @@ func (ns *Namespace) Unmarshal(args ...any) (any, error) { } defer reader.Close() - b, err := ioutil.ReadAll(reader) + b, err := io.ReadAll(reader) if err != nil { return nil, err } |