File tree Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ export const fsFileSystem: FileSystem = {
1515 try {
1616 const stat = await fs . promises . stat ( filePath ) ;
1717 return stat . isDirectory ( ) ;
18- } catch ( error ) {
18+ } catch {
1919 return false ;
2020 }
2121 } ,
Original file line number Diff line number Diff line change 44 findTypeScriptConfiguration ,
55 TypeScriptConfiguration ,
66} from "../input/findTypeScriptConfiguration" ;
7- import { uniqueFromSources } from "../utils" ;
7+ import { isTruthy , uniqueFromSources } from "../utils" ;
88
99export type CollectCommentFileNamesDependencies = {
1010 findTypeScriptConfiguration : SansDependencies < typeof findTypeScriptConfiguration > ;
@@ -38,13 +38,8 @@ export const collectCommentFileNames = async (
3838 const includeListFiles = (
3939 await Promise . all ( includeList . map ( dependencies . fileSystem . directoryExists ) )
4040 )
41- . map ( ( isDirectory , i ) => {
42- if ( isDirectory ) {
43- return null ;
44- }
45- return includeList [ i ] ;
46- } )
47- . filter ( ( item ) : item is string => typeof item === "string" ) ;
41+ . map ( ( isDirectory , i ) => ! isDirectory && includeList [ i ] )
42+ . filter ( isTruthy ) ;
4843
4944 return {
5045 exclude : typescriptConfiguration . exclude ,
You can’t perform that action at this time.
0 commit comments