refactor: Use endsWith for app folder path test

This commit is contained in:
Faruk AYDIN
2024-10-16 12:46:34 +02:00
parent 42f6311ca8
commit 00317fed24
2 changed files with 2 additions and 3 deletions

View File

@@ -8,6 +8,7 @@ const __dirname = path.dirname(fileURLToPath(import.meta.url));
class App {
static folderPath = join(__dirname, '../apps');
static list = fs
.readdirSync(this.folderPath)
.filter((file) => fs.statSync(join(this.folderPath, file)).isDirectory());