aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2019-11-14 13:21:15 -1000
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2019-11-14 13:21:15 -1000
commitca0b63df96c204a60774b625d7a73ca4c5049721 (patch)
treeeba0dc4e2d21446beeade60ef87cdc449d71d585
parentedc930244c49857c53724b26229dfdb9c0002a5d (diff)
downloadpatchfoo-ca0b63df96c204a60774b625d7a73ca4c5049721.tar.gz
patchfoo-ca0b63df96c204a60774b625d7a73ca4c5049721.zip
Hide falsy branch/root links
Reference: %jPUprTDlAhZI0VoKT8OUYoJinC4Glc+1GnlJwAgSH2U=.sha256
-rw-r--r--lib/render-msg.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/render-msg.js b/lib/render-msg.js
index a29a21b..0c8fbf2 100644
--- a/lib/render-msg.js
+++ b/lib/render-msg.js
@@ -574,7 +574,7 @@ RenderMsg.prototype.link1 = function (link, cb) {
RenderMsg.prototype.links = function (links, cb) {
var self = this
var done = multicb({pluck: 1})
- u.toArray(links).forEach(function (link) {
+ u.toArray(links).filter(Boolean).forEach(function (link) {
self.link(link, done())
})
done(cb)