chore(deps): bump github.com/beevik/etree from 1.4.0 to 1.4.1
Bumps [github.com/beevik/etree](https://github.com/beevik/etree) from 1.4.0 to 1.4.1. - [Release notes](https://github.com/beevik/etree/releases) - [Changelog](https://github.com/beevik/etree/blob/main/RELEASE_NOTES.md) - [Commits](https://github.com/beevik/etree/compare/v1.4.0...v1.4.1) --- updated-dependencies: - dependency-name: github.com/beevik/etree dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
This commit is contained in:
committed by
Ralf Haferkamp
parent
3247fa0a38
commit
ed13b043eb
+4
-4
@@ -152,7 +152,7 @@ type filter interface {
|
||||
// a Path object. It collects and deduplicates all elements matching
|
||||
// the path query.
|
||||
type pather struct {
|
||||
queue fifo
|
||||
queue queue[node]
|
||||
results []*Element
|
||||
inResults map[*Element]bool
|
||||
candidates []*Element
|
||||
@@ -180,7 +180,7 @@ func newPather() *pather {
|
||||
// and filters.
|
||||
func (p *pather) traverse(e *Element, path Path) []*Element {
|
||||
for p.queue.add(node{e, path.segments}); p.queue.len() > 0; {
|
||||
p.eval(p.queue.remove().(node))
|
||||
p.eval(p.queue.remove())
|
||||
}
|
||||
return p.results
|
||||
}
|
||||
@@ -406,9 +406,9 @@ func (s *selectChildren) apply(e *Element, p *pather) {
|
||||
type selectDescendants struct{}
|
||||
|
||||
func (s *selectDescendants) apply(e *Element, p *pather) {
|
||||
var queue fifo
|
||||
var queue queue[*Element]
|
||||
for queue.add(e); queue.len() > 0; {
|
||||
e := queue.remove().(*Element)
|
||||
e := queue.remove()
|
||||
p.candidates = append(p.candidates, e)
|
||||
for _, c := range e.Child {
|
||||
if c, ok := c.(*Element); ok {
|
||||
|
||||
Reference in New Issue
Block a user