remove unnecessary check
This commit is contained in:
parent
bd53750ac3
commit
219de3b67f
1 changed files with 0 additions and 10 deletions
|
|
@ -408,18 +408,8 @@ const sendHandshakeRequest = async (recipientPublicKey, gun, user, SEA) => {
|
|||
console.log('sendHR() -> before mySecret')
|
||||
|
||||
const mySecret = await SEA.secret(user._.sea.epub, user._.sea)
|
||||
if (typeof mySecret !== 'string') {
|
||||
throw new TypeError(
|
||||
"sendHandshakeRequest() -> typeof mySecret !== 'string'"
|
||||
)
|
||||
}
|
||||
console.log('sendHR() -> before ourSecret')
|
||||
const ourSecret = await SEA.secret(recipientEpub, user._.sea)
|
||||
if (typeof ourSecret !== 'string') {
|
||||
throw new TypeError(
|
||||
"sendHandshakeRequest() -> typeof ourSecret !== 'string'"
|
||||
)
|
||||
}
|
||||
|
||||
// check if successful handshake is present
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue