mirror of
https://github.com/alrayyes/wiki.git
synced 2024-11-25 21:16:21 +00:00
remove console.log
This commit is contained in:
parent
e4caa0d1d7
commit
1a8cdaad24
1 changed files with 0 additions and 2 deletions
|
@ -26,7 +26,6 @@
|
||||||
while (depth >= 0 && wl.length > 0) {
|
while (depth >= 0 && wl.length > 0) {
|
||||||
// compute neighbours
|
// compute neighbours
|
||||||
const cur = wl.shift()
|
const cur = wl.shift()
|
||||||
console.log(depth, cur, wl)
|
|
||||||
if (cur === "__SENTINEL") {
|
if (cur === "__SENTINEL") {
|
||||||
depth--
|
depth--
|
||||||
wl.push("__SENTINEL")
|
wl.push("__SENTINEL")
|
||||||
|
@ -34,7 +33,6 @@
|
||||||
neighbours.add(cur)
|
neighbours.add(cur)
|
||||||
const outgoing = index.links[cur] || []
|
const outgoing = index.links[cur] || []
|
||||||
const incoming = index.backlinks[cur] || []
|
const incoming = index.backlinks[cur] || []
|
||||||
console.log(incoming)
|
|
||||||
wl.push(...outgoing.map(l => l.target), ...incoming.map(l => l.source))
|
wl.push(...outgoing.map(l => l.target), ...incoming.map(l => l.source))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue