remove dead code

This commit is contained in:
Andre Staltz 2024-02-02 14:31:38 +02:00
parent 55a48ddd06
commit e4f559178c
No known key found for this signature in database
GPG Key ID: 9EDE23EA7E8A4890
1 changed files with 0 additions and 5 deletions

View File

@ -129,11 +129,6 @@ function initPromise(peer, config) {
setTimeout(() => follow(token, accountID, cb), 100) setTimeout(() => follow(token, accountID, cb), 100)
return return
} }
try {
} catch (err) {
cb(/**@type {Error}*/ (err))
return
}
if (!promises.has(token)) { if (!promises.has(token)) {
cb(new Error('Invalid token')) cb(new Error('Invalid token'))
return return