Skip to content

Commit e0da9a8

Browse files
committed
the point of the arrow function is to not need a context passed in
1 parent 4ea380f commit e0da9a8

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

lib/Chunk.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ class Chunk {
122122
remove(reason) {
123123
this.modules.slice().forEach(m => {
124124
m.removeChunk(this);
125-
}, this);
125+
});
126126
this.parents.forEach(c => {
127127
const idx = c.chunks.indexOf(this);
128128
if(idx >= 0) {
@@ -131,7 +131,7 @@ class Chunk {
131131
this.chunks.forEach(cc => {
132132
cc.addParent(c);
133133
});
134-
}, this);
134+
});
135135
this.chunks.forEach(c => {
136136
const idx = c.parents.indexOf(this);
137137
if(idx >= 0) {
@@ -140,7 +140,7 @@ class Chunk {
140140
this.parents.forEach(cc => {
141141
cc.addChunk(c);
142142
});
143-
}, this);
143+
});
144144
this.blocks.forEach(b => {
145145
const idx = b.chunks.indexOf(this);
146146
if(idx >= 0) {
@@ -150,7 +150,7 @@ class Chunk {
150150
b.chunkReason = reason;
151151
}
152152
}
153-
}, this);
153+
});
154154
}
155155

156156
moveModule(module, other) {

0 commit comments

Comments
 (0)