@@ -120,34 +120,34 @@ class Chunk {
120120 }
121121
122122 remove ( reason ) {
123- this . modules . slice ( ) . forEach ( m => {
124- m . removeChunk ( this ) ;
123+ this . modules . slice ( ) . forEach ( module => {
124+ module . removeChunk ( this ) ;
125125 } ) ;
126- this . parents . forEach ( c => {
127- const idx = c . chunks . indexOf ( this ) ;
126+ this . parents . forEach ( parent => {
127+ const idx = parent . chunks . indexOf ( this ) ;
128128 if ( idx >= 0 ) {
129- c . chunks . splice ( idx , 1 ) ;
129+ parent . chunks . splice ( idx , 1 ) ;
130130 }
131- this . chunks . forEach ( cc => {
132- cc . addParent ( c ) ;
131+ this . chunks . forEach ( chunk => {
132+ chunk . addParent ( parent ) ;
133133 } ) ;
134134 } ) ;
135- this . chunks . forEach ( c => {
136- const idx = c . parents . indexOf ( this ) ;
135+ this . chunks . forEach ( chunk => {
136+ const idx = chunk . parents . indexOf ( this ) ;
137137 if ( idx >= 0 ) {
138- c . parents . splice ( idx , 1 ) ;
138+ chunk . parents . splice ( idx , 1 ) ;
139139 }
140- this . parents . forEach ( cc => {
141- cc . addChunk ( c ) ;
140+ this . parents . forEach ( parent => {
141+ parent . addChunk ( chunk ) ;
142142 } ) ;
143143 } ) ;
144- this . blocks . forEach ( b => {
145- const idx = b . chunks . indexOf ( this ) ;
144+ this . blocks . forEach ( block => {
145+ const idx = block . chunks . indexOf ( this ) ;
146146 if ( idx >= 0 ) {
147- b . chunks . splice ( idx , 1 ) ;
148- if ( b . chunks . length === 0 ) {
149- b . chunks = null ;
150- b . chunkReason = reason ;
147+ block . chunks . splice ( idx , 1 ) ;
148+ if ( block . chunks . length === 0 ) {
149+ block . chunks = null ;
150+ block . chunkReason = reason ;
151151 }
152152 }
153153 } ) ;
0 commit comments