nit: variable rename

This commit is contained in:
Maidul Islam
2024-04-25 15:40:55 -04:00
parent 2d2d9a5987
commit 8b8baf1ef2
@@ -21,7 +21,7 @@ type TSecretImportSecrets = {
const LEVEL_BREAK = 10; const LEVEL_BREAK = 10;
const getImportUniqKey = (envSlug: string, path: string) => `${envSlug}=${path}`; const getImportUniqKey = (envSlug: string, path: string) => `${envSlug}=${path}`;
export const fnSecretsFromImports = async ({ export const fnSecretsFromImports = async ({
allowedImports: nonCyclicImports, allowedImports: possibleCyclicImports,
folderDAL, folderDAL,
secretDAL, secretDAL,
secretImportDAL, secretImportDAL,
@@ -40,7 +40,7 @@ export const fnSecretsFromImports = async ({
// avoid going more than a depth // avoid going more than a depth
if (depth >= LEVEL_BREAK) return []; if (depth >= LEVEL_BREAK) return [];
const allowedImports = nonCyclicImports.filter( const allowedImports = possibleCyclicImports.filter(
({ importPath, importEnv }) => !cyclicDetector.has(getImportUniqKey(importEnv.slug, importPath)) ({ importPath, importEnv }) => !cyclicDetector.has(getImportUniqKey(importEnv.slug, importPath))
); );