Reuse dirPath variable (#9683)

This commit is contained in:
Sosuke Suzuki authored and GitHub committed 2020-11-16 14:17:36 +09:00
1 parent ef6a2c5f8a
commit fe789dc1d1
1 file changed
+1 -1
+1 -1
View File
@@ -57,7 +57,7 @@ for (const dir of dirs) {
}
category.entries = fs
.readdirSync(path.join(changelogUnreleasedDir, dir.name))
.readdirSync(dirPath)
.filter((fileName) => /^pr-\d+\.md$/.test(fileName))
.map((fileName) => {
const [title, ...rest] = fs