aboutsummaryrefslogtreecommitdiffhomepage
path: root/hugolib/site_sections.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2017-08-17 08:32:47 +0200
committerBjørn Erik Pedersen <[email protected]>2017-08-17 08:32:47 +0200
commita7555c54310612a746d34361a2d58f62207349bb (patch)
tree3b753c1f10ff8e45c5c09915242999c57f89dc08 /hugolib/site_sections.go
parentc265c102ae0705011bca6999e5b1c14fb00fa859 (diff)
downloadhugo-a7555c54310612a746d34361a2d58f62207349bb.tar.gz
hugo-a7555c54310612a746d34361a2d58f62207349bb.zip
hugolib: Do not return error in Eq on type mismatch
Diffstat (limited to 'hugolib/site_sections.go')
-rw-r--r--hugolib/site_sections.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/hugolib/site_sections.go b/hugolib/site_sections.go
index 1ab2b0e27..25731e9d5 100644
--- a/hugolib/site_sections.go
+++ b/hugolib/site_sections.go
@@ -115,7 +115,8 @@ func (p *Page) IsAncestor(other interface{}) (bool, error) {
func (p *Page) Eq(other interface{}) (bool, error) {
pp, err := unwrapPage(other)
if err != nil {
- return false, err
+ // Do not return an error on type mismatch.
+ return false, nil
}
return p == pp, nil