Skip to content

Commit e897de5

Browse files
committed
fix(Session): remove() method doesn't remove path from list
1 parent a1fe740 commit e897de5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

class/ReactNativeBlobUtilSession.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export default class ReactNativeBlobUtilSession {
3939

4040
remove(path:string):ReactNativeBlobUtilSession {
4141
let list = sessions[this.name];
42-
for (let i of list) {
42+
for (let i = 0; i < list.length; i++) {
4343
if (list[i] === path) {
4444
sessions[this.name].splice(i, 1);
4545
break;

0 commit comments

Comments
 (0)