We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5161d96 commit 83301abCopy full SHA for 83301ab
1 file changed
lib/ChunkGroup.js
@@ -92,7 +92,7 @@ class ChunkGroup {
92
if(newIdx < oldIdx) {
93
this.chunks.splice(oldIdx, 1);
94
return true;
95
- } else {
+ } else if(newIdx !== oldIdx) {
96
this.chunks[oldIdx] = newChunk;
97
this.chunks.splice(newIdx, 1);
98
0 commit comments