Some more small code improvements

This commit is contained in:
Maximilian Krög
2022-08-09 00:10:06 +02:00
parent 5b8d810f80
commit 5fb69b1de1
4 changed files with 5 additions and 15 deletions

View File

@@ -69,7 +69,7 @@ function getPaths() {
const walker = walk(sourceDir);
walker.on('file', (root, stats, next) => {
const sourcePath = path.join(root, stats.name);
if (/\.js$/.test(sourcePath)) {
if (sourcePath.endsWith('.js')) {
paths.push(sourcePath);
}
next();