git ssb

1+

punkmonk.termux / mvd



forked from ev / mvd

Commit 8ff58551ced7bc06366af38dfc920847013609a6

add brackets to if statement

Ev Bogue committed on 10/12/2018, 6:37:27 PM
Parent: 350c54f61ff89efdc100ba655b7d6e489e55b093

Files changed

render.jschanged
render.jsView
@@ -105,11 +105,12 @@
105105 message.appendChild(reponame)
106106
107107
108108 ssbAvatar(sbot, id, msg.value.content.repo, function (err, data) {
109- if (data)
110- var actualname = h('p', 'pushed to ', h('a', {href: '#' + msg.value.content.repo}, '%' + data.name))
111- reponame.parentNode.replaceChild(actualname, reponame)
109+ if (data) {
110+ var actualname = h('p', 'pushed to ', h('a', {href: '#' + msg.value.content.repo}, '%' + data.name))
111+ reponame.parentNode.replaceChild(actualname, reponame)
112+ }
112113 })
113114
114115 message.appendChild(cloneurl)
115116

Built with git-ssb-web