From a217ecc59bdda0607c7bd84c61a499e1ba771a1d Mon Sep 17 00:00:00 2001 From: cel Date: Tue, 3 Sep 2019 20:39:20 -0700 Subject: remove trailing comma --- lib/render-msg.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/render-msg.js') 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())] }) ) ) -- cgit v1.2.3