fork of https://github.com/sourcegraph/zoekt
0

Configure Feed

Select the types of activity you want to include in your feed.

fix: prune boostMatchTree if child is pruned (#732)

The old behavior led to panics in NextDoc if the child was pruned.

+6
+6
matchtree.go
··· 1332 1332 mt.child, err = pruneMatchTree(mt.child) 1333 1333 case *boostMatchTree: 1334 1334 mt.child, err = pruneMatchTree(mt.child) 1335 + if err != nil { 1336 + return nil, err 1337 + } 1338 + if mt.child == nil { 1339 + return nil, nil 1340 + } 1335 1341 case *andLineMatchTree: 1336 1342 child, err := pruneMatchTree(&mt.andMatchTree) 1337 1343 if err != nil {