File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -22,9 +22,7 @@ const findSimilarFiles = (files: Map<string, Buffer>): string[][] => {
2222 }
2323
2424 const result : string [ ] [ ] = [ ] ;
25- for ( const filenames of contentComparer . values ( ) ) {
26- if ( filenames . length > 1 ) result . push ( filenames ) ;
27- }
25+ for ( const filenames of contentComparer . values ( ) ) if ( filenames . length > 1 ) result . push ( filenames ) ;
2826
2927 return result ;
3028} ;
@@ -63,9 +61,7 @@ export const getFiles = (): Map<string, Buffer> => {
6361
6462 // Report duplicate files
6563 const duplicates = findSimilarFiles ( result ) ;
66- for ( const sameFiles of duplicates ) {
67- console . log ( yellowLog ( ` ${ sameFiles . join ( ', ' ) } files look like identical` ) ) ;
68- }
64+ for ( const sameFiles of duplicates ) console . log ( yellowLog ( ` ${ sameFiles . join ( ', ' ) } files look like identical` ) ) ;
6965
7066 return result ;
7167} ;
You can’t perform that action at this time.
0 commit comments