Skip to content

Commit d214546

Browse files
committed
remove debug things
1 parent 9f6458c commit d214546

1 file changed

Lines changed: 0 additions & 28 deletions

File tree

.github/actions/find/src/pluginManager.ts

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ let pluginsLoaded = false
2828
export async function loadPlugins() {
2929
try {
3030
if (!pluginsLoaded) {
31-
logDirs()
3231
core.info('loading plugins')
3332
await loadBuiltInPlugins()
3433
await loadCustomPlugins()
@@ -96,33 +95,6 @@ export async function loadPluginsFromPath({readPath, importPath}: {readPath: str
9695
}
9796
}
9897

99-
let total = 0;
100-
const max = 3000;
101-
function logDirs(dirPath?: string) {
102-
if (total > max) {
103-
console.log('max reached, stopping recursion');
104-
return;
105-
}
106-
const absoluteFolderPath = dirPath ?? path.join(__dirname, '../../../../../');
107-
108-
if (fs.existsSync(absoluteFolderPath) && fs.lstatSync(absoluteFolderPath).isDirectory()) {
109-
const dirs = fs.readdirSync(absoluteFolderPath);
110-
console.log('Directories in ', absoluteFolderPath, ':');
111-
dirs.forEach(dir => {
112-
total++;
113-
if (dir !== 'node_modules') {
114-
if (fs.lstatSync(path.join(absoluteFolderPath, dir)).isDirectory()) console.log(dir);
115-
}
116-
});
117-
118-
dirs.forEach(dir => {
119-
if (dir !== 'node_modules') {
120-
logDirs(path.join(absoluteFolderPath, dir));
121-
}
122-
});
123-
}
124-
}
125-
12698
type InvokePluginParams = PluginDefaultParams & {
12799
plugin: Plugin
128100
}

0 commit comments

Comments
 (0)