You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
remove(path:string):RNFetchBlobSession {
let list = sessions[this.name]
for(let i of list) {
if(list[i] === path) {
sessions[this.name].splice(i, 1)
break;
}
}
return this
}
Suggest fix
remove(path:string):ReactNativeBlobUtilSession {
let list = sessions[this.name];
for (let i = 0; i < list.length; i++) {
if (list[i] === path) {
sessions[this.name].splice(i, 1);
break;
}
}
return this;
}
The text was updated successfully, but these errors were encountered:
Hello,
Thanks for your cool lib. I am really enjoing using it.
Found bug with session remove method. It doesn't remove item from list.
i
will be item (=path string) and not index of element. This code will never find item to delete, becauselist[i]
will always beundefined
.rn-fetch-blob/class/RNFetchBlobSession.js
Line 48 in cf9e884
Suggest fix
The text was updated successfully, but these errors were encountered: