1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-06-27 16:36:00 +00:00

Make parser compatible with Go 1.12

See changes in strings.Map(): https://golang.org/doc/go1.12#strings
This commit is contained in:
Frédéric Guillot 2019-02-28 21:22:58 -08:00
parent 45df254fe7
commit 6764a420b0
7 changed files with 31 additions and 39 deletions

View file

@ -177,7 +177,7 @@ func (s *nodeStack) index(n *Node) int {
// contains returns whether a is within s.
func (s *nodeStack) contains(a atom.Atom) bool {
for _, n := range *s {
if n.DataAtom == a {
if n.DataAtom == a && n.Namespace == "" {
return true
}
}