File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ const getFilePath = (configurationPath: string): string | undefined => {
11
11
if ( configurationPath . includes ( '.json' ) && fs . existsSync ( repoPath ) )
12
12
return repoPath
13
13
if ( ! configurationPath . includes ( '.json' ) ) {
14
- let allFiles ;
14
+ let allFiles
15
15
try {
16
16
allFiles = fs . readdirSync ( repoPath )
17
17
} catch ( error : any ) {
@@ -20,8 +20,10 @@ const getFilePath = (configurationPath: string): string | undefined => {
20
20
)
21
21
return
22
22
}
23
- const expectedFilenames = jsonTypes . map ( ( type ) => `auto-label.${ type } ` ) ;
24
- const files = allFiles . filter ( ( filename ) => expectedFilenames . includes ( filename ) ) ;
23
+ const expectedFilenames = jsonTypes . map ( ( type ) => `auto-label.${ type } ` )
24
+ const files = allFiles . filter ( ( filename ) =>
25
+ expectedFilenames . includes ( filename )
26
+ )
25
27
if ( ! files . length ) return
26
28
return `${ repoPath } /${ files [ 0 ] } ` . replace ( '//' , '/' )
27
29
}
You can’t perform that action at this time.
0 commit comments