diff options
author | Bjørn Erik Pedersen <[email protected]> | 2022-03-17 22:03:27 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2022-03-17 22:03:27 +0100 |
commit | b80853de90b10171155b8f3fde47d64ec7bfa0dd (patch) | |
tree | 435d3dbf7a495a0c6ce64c9769e037179aa0d27b /hugolib/page__tree.go | |
parent | 423594e03a906ef4150f433666ff588b022c3c92 (diff) | |
download | hugo-b80853de90b10171155b8f3fde47d64ec7bfa0dd.tar.gz hugo-b80853de90b10171155b8f3fde47d64ec7bfa0dd.zip |
all: gofmt -w -r 'interface{} -> any' .
Updates #9687
Diffstat (limited to 'hugolib/page__tree.go')
-rw-r--r-- | hugolib/page__tree.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hugolib/page__tree.go b/hugolib/page__tree.go index e4f3c6b51..d2b1f684a 100644 --- a/hugolib/page__tree.go +++ b/hugolib/page__tree.go @@ -25,7 +25,7 @@ type pageTree struct { p *pageState } -func (pt pageTree) IsAncestor(other interface{}) (bool, error) { +func (pt pageTree) IsAncestor(other any) (bool, error) { if pt.p == nil { return false, nil } @@ -71,7 +71,7 @@ func (pt pageTree) CurrentSection() page.Page { return p.Parent() } -func (pt pageTree) IsDescendant(other interface{}) (bool, error) { +func (pt pageTree) IsDescendant(other any) (bool, error) { if pt.p == nil { return false, nil } @@ -125,7 +125,7 @@ func (pt pageTree) FirstSection() page.Page { return b.p } -func (pt pageTree) InSection(other interface{}) (bool, error) { +func (pt pageTree) InSection(other any) (bool, error) { if pt.p == nil || types.IsNil(other) { return false, nil } |