File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/lib/converter/plugins Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -160,11 +160,11 @@ export class SourcePlugin extends ConverterComponent {
160160 let directory = home ;
161161 const path = Path . dirname ( file . fileName ) ;
162162 if ( path !== '.' ) {
163- path . split ( '/' ) . forEach ( ( path ) => {
164- if ( ! Object . prototype . hasOwnProperty . call ( directory , path ) ) {
165- directory . directories [ path ] = new SourceDirectory ( path , directory ) ;
163+ path . split ( '/' ) . forEach ( ( pathPiece ) => {
164+ if ( ! Object . prototype . hasOwnProperty . call ( directory . directories , pathPiece ) ) {
165+ directory . directories [ pathPiece ] = new SourceDirectory ( pathPiece , directory ) ;
166166 }
167- directory = directory . directories [ path ] ;
167+ directory = directory . directories [ pathPiece ] ;
168168 } ) ;
169169 }
170170
You can’t perform that action at this time.
0 commit comments