Skip to content

Commit 7305593

Browse files
committed
rename other to otherChunk
1 parent f062f49 commit 7305593

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

lib/Chunk.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -261,12 +261,12 @@ class Chunk {
261261
this.modules.forEach(m => m.updateHash(hash));
262262
}
263263

264-
canBeIntegrated(other) {
265-
if(other.isInitial()) {
264+
canBeIntegrated(otherChunk) {
265+
if(otherChunk.isInitial()) {
266266
return false;
267267
}
268268
if(this.isInitial()) {
269-
if(other.parents.length !== 1 || other.parents[0] !== this) {
269+
if(otherChunk.parents.length !== 1 || otherChunk.parents[0] !== this) {
270270
return false;
271271
}
272272
}
@@ -292,13 +292,13 @@ class Chunk {
292292
return this.addMultiplierAndOverhead(this.modulesSize(), options);
293293
}
294294

295-
integratedSize(other, options) {
295+
integratedSize(otherChunk, options) {
296296
// Chunk if it's possible to integrate this chunk
297-
if(!this.canBeIntegrated(other)) {
297+
if(!this.canBeIntegrated(otherChunk)) {
298298
return false;
299299
}
300300

301-
const modulesSize = this.modulesSize() + other.modulesSize();
301+
const modulesSize = this.modulesSize() + otherChunk.modulesSize();
302302
return this.addMultiplierAndOverhead(modulesSize, options);
303303
}
304304

0 commit comments

Comments
 (0)