Reuse dirPath variable (#9683)
This commit is contained in:
1 parent
ef6a2c5f8a
commit
fe789dc1d1
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user