Skip to content

Commit

Permalink
πŸ› Fix a second index.js check? tf?
Browse files Browse the repository at this point in the history
  • Loading branch information
daniwasonline committed May 21, 2024
1 parent 23cd527 commit 5df7eb3
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/util/loaders.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,6 @@ export async function loadStructures(dir, predicate, recursive = true, allowInde

// Loop through all the files in the directory
for (const file of files) {
// If the file is index.js or the file does not end with .js, skip the file
if (file === "index.js" || !file.endsWith(".js")) {
continue;
}

// Get the stats of the file
const statFile = await stat(new URL(`${dir}/${file}`));

Expand Down

0 comments on commit 5df7eb3

Please sign in to comment.