NotAdded/video/p2p.js
Function ensureConnection
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
ensureConnection: function(peerID, connect) {
if(ig.peers[peerID]) {
return ig.peers[peerID];
} else {
var p;
Function chkPending
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
chkPending: function(peerID, piece, block, lastReceived, totalReceived, lastTime) {