Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
Change to pass linter
Browse files Browse the repository at this point in the history
  • Loading branch information
christianbundy committed Dec 3, 2019
1 parent 08c67ae commit dbaa8a0
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions index.js
Expand Up @@ -220,8 +220,8 @@ function setupContext (appName, opts, cb) {
}

// Support rooms
ssbConfig.connections.incoming.tunnel = [{scope: 'public', transform: 'shs'}]
ssbConfig.connections.outgoing.tunnel = [{transform: 'shs'}]
ssbConfig.connections.incoming.tunnel = [{ scope: 'public', transform: 'shs' }]
ssbConfig.connections.outgoing.tunnel = [{ transform: 'shs' }]

const redactedConfig = JSON.parse(JSON.stringify(ssbConfig))
redactedConfig.keys.private = null
Expand Down
2 changes: 1 addition & 1 deletion lib/depject/invite/invite.js
Expand Up @@ -24,7 +24,7 @@ exports.create = function (api) {

if (roomUtils.isInvite(invite)) {
const address = roomUtils.inviteToAddress(invite)
api.sbot.async.connRememberConnect(address, {type: 'room'}, cb)
api.sbot.async.connRememberConnect(address, { type: 'room' }, cb)
return
}

Expand Down
6 changes: 3 additions & 3 deletions lib/plugins/index.js
Expand Up @@ -120,9 +120,9 @@ exports.init = function (ssb, config) {
const blocking = graph && graph[ssb.id] && graph[ssb.id][address.key] === false
if (blocking) return
// make multiserver address as a string
let msAddr;
let msAddr
try {
msAddr = ref.toMultiServerAddress(address);
msAddr = ref.toMultiServerAddress(address)
} catch (err) {
return
}
Expand All @@ -131,7 +131,7 @@ exports.init = function (ssb, config) {
if (oldEntry && oldEntry.type === 'room') return
// add pub to the CONN database
discovered.add(address.key)
ssb.conn.remember(msAddr, {type: 'pub', key: address.key, autoconnect: true});
ssb.conn.remember(msAddr, { type: 'pub', key: address.key, autoconnect: true })
}
})
)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -131,4 +131,4 @@
"publisherName": "Secure Scuttlebutt Consortium"
}
}
}
}

0 comments on commit dbaa8a0

Please sign in to comment.