git ssb

7+

dinoworm ๐Ÿ› / patchcore



Commit 80ba6fee5d82b4a5f3ffa668f3115933558ebc92

apply standard --fix

Andre Staltz committed on 9/13/2017, 1:57:27 PM
Parent: 069b24d7b8bdc1dcc7a8921390f0733123b41515

Files changed

about/sync.jschanged
contact/async.jschanged
invite.jschanged
about/sync.jsView
@@ -1,9 +1,9 @@
1-var nest = require('depnest');
1+var nest = require('depnest')
22
3-exports.gives = nest('about.sync.shortFeedId');
3+exports.gives = nest('about.sync.shortFeedId')
44
55 exports.create = function (api) {
66 return nest('about.sync.shortFeedId', function (id) {
7- return id.slice(1, 10);
8- });
9-};
7+ return id.slice(1, 10)
8+ })
9+}
contact/async.jsView
@@ -40,7 +40,4 @@
4040 }, cb)
4141 }
4242 }
4343
44-
45-
46-
invite.jsView
@@ -13,9 +13,9 @@
1313 })
1414
1515 exports.gives = nest({
1616 'invite.async.accept': true,
17- 'invite.async.autofollow': true,
17+ 'invite.async.autofollow': true
1818 })
1919
2020 exports.create = function (api) {
2121 function accept (invite, cb) {
@@ -79,15 +79,15 @@
7979 return progress
8080 }
8181 return nest({
8282 'invite.async.accept': accept,
83- //like invite, but check whether we already follow them first
83+ // like invite, but check whether we already follow them first
8484 'invite.async.autofollow': function (invite, cb) {
8585 var id = api.keys.sync.id()
8686 var data = ref.parseInvite(invite)
8787 api.contact.async.followerOf(id, data.key, function (_, follows) {
8888 if (follows) console.log('already following', cb())
89- else console.log('accept invite:'+invite, accept(invite, cb))
89+ else console.log('accept invite:' + invite, accept(invite, cb))
9090 })
9191 }
9292 })
9393 }

Built with git-ssb-web