Commit 80ba6fee5d82b4a5f3ffa668f3115933558ebc92
apply standard --fix
Andre Staltz committed on 9/13/2017, 1:57:27 PMParent: 069b24d7b8bdc1dcc7a8921390f0733123b41515
Files changed
about/sync.js | changed |
contact/async.js | changed |
invite.js | changed |
about/sync.js | ||
---|---|---|
@@ -1,9 +1,9 @@ | ||
1 | -var nest = require('depnest'); | |
1 | +var nest = require('depnest') | |
2 | 2 | |
3 | -exports.gives = nest('about.sync.shortFeedId'); | |
3 | +exports.gives = nest('about.sync.shortFeedId') | |
4 | 4 | |
5 | 5 | exports.create = function (api) { |
6 | 6 | return nest('about.sync.shortFeedId', function (id) { |
7 | - return id.slice(1, 10); | |
8 | - }); | |
9 | -}; | |
7 | + return id.slice(1, 10) | |
8 | + }) | |
9 | +} |
invite.js | ||
---|---|---|
@@ -13,9 +13,9 @@ | ||
13 | 13 | }) |
14 | 14 | |
15 | 15 | exports.gives = nest({ |
16 | 16 | 'invite.async.accept': true, |
17 | - 'invite.async.autofollow': true, | |
17 | + 'invite.async.autofollow': true | |
18 | 18 | }) |
19 | 19 | |
20 | 20 | exports.create = function (api) { |
21 | 21 | function accept (invite, cb) { |
@@ -79,15 +79,15 @@ | ||
79 | 79 | return progress |
80 | 80 | } |
81 | 81 | return nest({ |
82 | 82 | '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 | |
84 | 84 | 'invite.async.autofollow': function (invite, cb) { |
85 | 85 | var id = api.keys.sync.id() |
86 | 86 | var data = ref.parseInvite(invite) |
87 | 87 | api.contact.async.followerOf(id, data.key, function (_, follows) { |
88 | 88 | 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)) | |
90 | 90 | }) |
91 | 91 | } |
92 | 92 | }) |
93 | 93 | } |
Built with git-ssb-web