Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return multiaddrs.filter((ma) => {
return mafmt.WebRTCStar.matches(ma)
})
}
return multiaddrs.filter((ma) => {
if (ma.protoCodes().includes(CODE_CIRCUIT)) {
return false
}
return mafmt.WebRTCStar.matches(ma)
})
}
.filter((multiaddr) =>
mafmt.WebRTCStar.matches(multiaddr) &&
multiaddr.getPeerId() === peerIdStrings[toDelete])
.forEach((multiaddr) =>