diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-08-17 09:32:47 +0300 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-08-17 09:32:47 +0300 |
commit | a7555c54310612a746d34361a2d58f62207349bb (patch) | |
tree | 3b753c1f10ff8e45c5c09915242999c57f89dc08 /hugolib/site_sections.go | |
parent | c265c102ae0705011bca6999e5b1c14fb00fa859 (diff) |
hugolib: Do not return error in Eq on type mismatch
Diffstat (limited to 'hugolib/site_sections.go')
-rw-r--r-- | hugolib/site_sections.go | 3 |
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 |