mirror of https://codeberg.org/pzp/pzp-promise.git
remove dead code
This commit is contained in:
parent
55a48ddd06
commit
e4f559178c
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue