summaryrefslogtreecommitdiffstats
path: root/hugolib/page_unwrap.go
diff options
context:
space:
mode:
Diffstat (limited to 'hugolib/page_unwrap.go')
-rw-r--r--hugolib/page_unwrap.go4
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)