diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2022-03-17 22:03:27 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2022-03-17 22:03:27 +0100 |
commit | b80853de90b10171155b8f3fde47d64ec7bfa0dd (patch) | |
tree | 435d3dbf7a495a0c6ce64c9769e037179aa0d27b /hugolib/page_unwrap.go | |
parent | 423594e03a906ef4150f433666ff588b022c3c92 (diff) |
all: gofmt -w -r 'interface{} -> any' .
Updates #9687
Diffstat (limited to 'hugolib/page_unwrap.go')
-rw-r--r-- | hugolib/page_unwrap.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hugolib/page_unwrap.go b/hugolib/page_unwrap.go index eda6636d1..0e985953b 100644 --- a/hugolib/page_unwrap.go +++ b/hugolib/page_unwrap.go @@ -25,7 +25,7 @@ type pageWrapper interface { } // unwrapPage is used in equality checks and similar. -func unwrapPage(in interface{}) (page.Page, error) { +func unwrapPage(in any) (page.Page, error) { switch v := in.(type) { case *pageState: return v, nil @@ -40,7 +40,7 @@ func unwrapPage(in interface{}) (page.Page, error) { } } -func mustUnwrapPage(in interface{}) page.Page { +func mustUnwrapPage(in any) page.Page { p, err := unwrapPage(in) if err != nil { panic(err) |