From: Bjørn Erik Pedersen Date: Thu, 17 Aug 2017 06:32:47 +0000 (+0200) Subject: hugolib: Do not return error in Eq on type mismatch X-Git-Tag: v0.27~24 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=a7555c543;p=brevno-suite%2Fhugo hugolib: Do not return error in Eq on type mismatch --- diff --git a/hugolib/site_sections.go b/hugolib/site_sections.go index 1ab2b0e2..25731e9d 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