aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2019-09-03 20:39:20 -0700
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2019-09-04 08:09:13 -0700
commita217ecc59bdda0607c7bd84c61a499e1ba771a1d (patch)
tree50952dc03923da574bd61773d99e850459c2252f
parenta6f85a3e11cb3b2be379dfcf08b2b1cc97a94da3 (diff)
downloadpatchfoo-a217ecc59bdda0607c7bd84c61a499e1ba771a1d.tar.gz
patchfoo-a217ecc59bdda0607c7bd84c61a499e1ba771a1d.zip
remove trailing comma
-rw-r--r--lib/render-msg.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/render-msg.js b/lib/render-msg.js
index 528553f..7883dee 100644
--- a/lib/render-msg.js
+++ b/lib/render-msg.js
@@ -398,8 +398,8 @@ RenderMsg.prototype.post = function (cb) {
return h('div', h('small', h('span.symbol', '⑂'), ' ', a))
}),
self.c.x || self.c.y ? h('div', h('small', '[' + self.c.x + ', ' + self.c.y + ']')) : '',
- self.c.tags ? h('div', h('small', 'tags: ', u.toArray(self.c.tags).map(function (tag) {
- return [h('code', tag), ', ']
+ self.c.tags ? h('div', h('small', 'tags: ', u.toArray(self.c.tags).map(function (tag, i) {
+ return [i > 0 ? ', ' : '', h('code', tag)]
}))) : '',
h('div.ssb-post-text', {innerHTML: self.markdown()})
), cb)
@@ -1205,7 +1205,7 @@ RenderMsg.prototype.dns = function (cb) {
JSON.stringify(record.data || record.value, null, 2)),
!self.c.branch ? null : h('div',
'replaces: ', u.toArray(self.c.branch).map(function (id, i) {
- return [self.link1(id, done()), i === 0 ? ', ' : '']
+ return [i > 0 ? ', ' : '', self.link1(id, done())]
})
)
)