Skip to content

Commit 73d67e5

Browse files
committed
chore: lint
1 parent 346f989 commit 73d67e5

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/domain/getLabelConfigs.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const getFilePath = (configurationPath: string): string | undefined => {
1111
if (configurationPath.includes('.json') && fs.existsSync(repoPath))
1212
return repoPath
1313
if (!configurationPath.includes('.json')) {
14-
let allFiles;
14+
let allFiles
1515
try {
1616
allFiles = fs.readdirSync(repoPath)
1717
} catch (error: any) {
@@ -20,8 +20,10 @@ const getFilePath = (configurationPath: string): string | undefined => {
2020
)
2121
return
2222
}
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+
)
2527
if (!files.length) return
2628
return `${repoPath}/${files[0]}`.replace('//', '/')
2729
}

0 commit comments

Comments
 (0)