Panic in readFold.reads on a node kind it has no case for

This commit is contained in:
2026-09-30 16:57:54 +02:00
committed by Lillem4n
parent 3240f05027
commit e55b9cc89b
2 changed files with 3 additions and 2 deletions
+3
View File
@@ -97,6 +97,9 @@ func (f *readFold) reads(n node) []pathRead {
out = f.rowReads(n.t, func(b *branches, row int) bool { return b.enter(n.t, row) })
case *tableColumn:
out = f.cellReads(n, func(b *branches, row int) bool { return b.enter(n.t, row) })
case *folder, *nullItem:
default:
panic(internalError("reads has no case for node %T", n))
}
out = distinct(out)
f.memo[n] = out