Skip to content

Commit dd5eb39

Browse files
committed
remove unnecessary passing of "this" argument - done via arrow functions
1 parent 2f58138 commit dd5eb39

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

lib/Chunk.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -207,14 +207,15 @@ class Chunk {
207207
other.blocks.forEach(b => {
208208
b.chunks = b.chunks ? b.chunks.map(c => {
209209
return c === other ? this : c;
210-
}, this) : [this];
210+
}) : [this];
211211
b.chunkReason = reason;
212212
this.addBlock(b);
213-
}, this);
213+
});
214214
other.blocks.length = 0;
215+
215216
other.origins.forEach(origin => {
216217
this.origins.push(origin);
217-
}, this);
218+
});
218219
this.origins.forEach(origin => {
219220
if(!origin.reasons) {
220221
origin.reasons = [reason];

0 commit comments

Comments
 (0)