Skip to content

Commit 14894f0

Browse files
committed
not needed as arrow functions keep "this"
1 parent e0da9a8 commit 14894f0

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎lib/Chunk.js‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,6 @@ class Chunk {
223223
}
224224

225225
split(newChunk) {
226-
const _this = this;
227226
this.blocks.forEach(b => {
228227
newChunk.blocks.push(b);
229228
b.chunks.push(newChunk);
@@ -237,7 +236,7 @@ class Chunk {
237236
newChunk.parents.push(p);
238237
});
239238
this.entrypoints.forEach(e => {
240-
e.insertChunk(newChunk, _this);
239+
e.insertChunk(newChunk, this);
241240
});
242241
}
243242

0 commit comments

Comments
 (0)